in reply to Re: Drop-down list Option Value
in thread Drop-down list Option Value
In your HTML code you have
<option value="fish1.jpg">Fresh water fish</option>Only the contents of the value attribute are sent to your CGI script by the browser. So if you want your script to display "Fresh water fish", then you either need to put that into the value attribute or have some sort of a lookup table/file where you can match fish1.jpg to "Fresh water fish"
On an unrelated note, I am not very sure what cgi-lib.pl is, but you should consider using a standard module for parsing the submitted form data such as CGI. Here's the relavent section of Ovid's web tutorial that talks about why you should use CGi.pm
Just a tongue-tied, twisted, earth-bound misfit. -- Pink Floyd
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Drop-down list Option Value
by Happyjack (Novice) on Feb 02, 2003 at 21:21 UTC | |
by Notromda (Pilgrim) on Feb 03, 2003 at 04:24 UTC | |
by data64 (Chaplain) on Feb 02, 2003 at 23:19 UTC |