Pi_Mastuh Posted September 23, 2006 Share Posted September 23, 2006 I have this piece of code: <textarea name=shopImageLink cols=30>$shopImageLink</textarea> It declares the variable by what you type in or somethin like that but i want to change it to a dropdown bow that displays a name and declares the variable as a url based on the name. I don't know exactly what the code does, but you're suppossed to enter a url of a picture. i want them to be able to choose from a list of pictures. Quote Link to comment Share on other sites More sharing options...
xyn Posted September 23, 2006 Share Posted September 23, 2006 So you mean by using a drop down you select a name and it will have a preview of the picture next to it?example:(cat, dog, fish) when you go down the drop down if you click cat it shwos a cat, etc.Or not? Quote Link to comment Share on other sites More sharing options...
Pi_Mastuh Posted September 23, 2006 Author Share Posted September 23, 2006 No, A dropdown list with something like Cat, Dog, etc. And whn you click dog, for example, it stores $shopImageLink as dog.jpg. Quote Link to comment Share on other sites More sharing options...
AndyB Posted September 24, 2006 Share Posted September 24, 2006 [code]<select name="shopImagelink"><option value="cat.jpg">Cat</option><option value="dog.jpg">Dog</option><option value="fat_wombat.jpg">Wombat</option></select>[/code] Quote Link to comment Share on other sites More sharing options...
Pi_Mastuh Posted September 24, 2006 Author Share Posted September 24, 2006 Thank you, I thought it was something along those lines. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.