View Single Post
Old 01-23-2003, 03:20 PM  
fiveyes
Confirmed User
 
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
Quote:
Originally posted by Rip
...I have a simple form with user choices

1; value = 'nochoice'
1; value = 'yes'
1; value = 'no'
...
Remember, option choices are not assigned to 'value', but to the NAME of the selection. Also, all your values are being stored in a hashed array- %field.

In other words, if you have 'SELECT NAME="selection" ', you need to use:

if ($field{'selection'} ne "nochoice") {$modifyfield = 26; $searchtext eq $field{'selection'};}

(edit to remove that second instance of $value, since it is never assigned. )
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A>

<FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER>

Last edited by fiveyes; 01-23-2003 at 03:28 PM..
fiveyes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote