in reply to Drop-down list Option Value
Okay. I guess I blew my explanation. Here are snippets of code from my HTML document and my CGI.
<p>.....Yada, Yada, Yada... <select name="pet" size="1" onChange="showimage()"> <option selected value="pets.gif">Your Favorite Pet</option> <option value="afghanhd.jpg">Big dogs</option> <option value="austter.jpg">Little dogs</option> <option value="ragdoll2.jpg">Cats</option> <option value="fish1.jpg">Fresh water fish</option> <option value="gerbil.jpg">Gerbils</option> <option value="morganhorse.jpg">Horses</option> <option value="parrot.jpg">Parrots</option> <option value="macaw.jpg">Macaws</option> <option value="toucan.jpg">Toucans</option> <option value="snap.jpg">Turtles</option> <option value="iguana.jpg">Iguanas</option> <option value="sinaloan.jpg">Snakes</option> </select> </p>
#!/usr/bin/perl -w require "cgi-lib.pl"; &ReadParse; #color.cgi #Warn browser that HTML is coming print &PrintHeader; print <<"eohtml"; <html><head><title>Thanks for responding</title></head> <body bgcolor = "#FFFFFF"><H1>Thank You</H1> <p>What a coincidence, $in{'firstname'} $in{'lastname'}!!</p> <p>My favorite color is $in{'color'} <strong>AND</strong> I Love $in{' +pet'}.</p> </body></html> eohtml #End of Program
What a coincidence, Jack Gray!!
My favorite color is yellow AND I Love fish1.jpg.
What a coincidence, Jack Gray!!
My favorite color is yellow AND I Love Fresh water fish.
I don't want the drop-down list box in my CGI output, only the description from the HTML option statement.
Again, thanks for all the great responses and I apologize for not fully explaining the assignment.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Drop-down list Option Value
by data64 (Chaplain) on Feb 02, 2003 at 17:00 UTC | |
by Happyjack (Novice) on Feb 02, 2003 at 21:21 UTC | |
by data64 (Chaplain) on Feb 02, 2003 at 23:19 UTC | |
by Notromda (Pilgrim) on Feb 03, 2003 at 04:24 UTC | |
|
Re: Re: Drop-down list Option Value
by antirice (Priest) on Feb 02, 2003 at 17:08 UTC | |
by Happyjack (Novice) on Feb 02, 2003 at 19:58 UTC | |
by katgirl (Hermit) on Feb 03, 2003 at 09:21 UTC |