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.
In reply to Re: Drop-down list Option Value
by Happyjack
in thread Drop-down list Option Value
by Happyjack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |