I hope I can explain myself well with this one.
I'm trying to allow my users to select from a list of icons to include with their messages to my guestbook.
When they select the icon from the menu, it's placed inside a hidden input field that will dump that choice into my database for reference.
This is the code I tried, but it didn't work:
<input type='hidden' name='guest_icon' value='$guestbook_icon' class='textbox' style='width:200px'>
<select name='guest_icon' class='textbox' style='margin-top:5px' onChange=\"addText('guest_icon', '' + this.options[this.selectedIndex].value + '', '');this.selectedIndex=0;\">
<option value=''>-Select Icon-</option>
<option value=\"<img src='http://www.mysite.com/Icon1.jpg'>'\">Icon 1</option>
<option value=\"<img src='http://www.mysite.com/Icon2.jpg'>'\">Icon 2</option>
<option value=\"<img src='http://www.mysite.com/Icon3.jpg'>'\">Icon 3</option>
</select>
What can I set to this that will INSERT the selection into my database TABLE named guestbook_icon?
Is this impossible? How can I accomplish this?