in reply to Re: Re: Drop-down list Option Value
in thread Drop-down list Option Value

Antirice,
Thanks for your help. The code required only one simple change; it requires that the jgp/gif option values be enclosed in quotation marks (as well as the descriptions). With thism change, the code worked perfectly.

Now I would like to expand this cgi code to display the selected image from the HTML file. This may, in fact, be much more advanced than I am right now. However, it's all a learning experience. Any suggestions in displaying the selected image?

THX!!!

  • Comment on Re: Re: Re: Drop-down list Option Value

Replies are listed 'Best First'.
Re: Re: Re: Re: Drop-down list Option Value
by katgirl (Hermit) on Feb 03, 2003 at 09:21 UTC
    Well even I can do this one :)
    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 $hash +OfAnimals{$in{'pet'}}.</p> <p><center><img src="$in{'pet'}"></center></p> </body></html> eohtml
    Just change the above snippet. You might want to add image attributes and other formatting.