Gossamer Forum
Home : General : Perl Programming :

form help- numer field

Quote Reply
form help- numer field
I have a search form with a numer field. How do I pass a 0 or a -- to the cgi, that understands the input as "no input" so that the db will not try to match it, so that it is ignored in the search results?
In the form I have
Code:
<option value="">0
<option value="1">1
</select>
Quote Reply
Re: form help- numer field In reply to
If you are using this with one of Gossamer Threads scripts, then simply use the following:

Code:
<option value="---">0
<option value="1">1
</select>

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums