Posted: Wed Apr 30, 2008 6:42 pm A drop down input box
Im making a registration page. and all ive been using so far is input boxes. I want to make it so the user has to select the location of where their from. I want the picture of their flag and the name of the country next to it. but i made a <select> </select> drop down and named it the name of the input going into the database but for some reason it didnt work. and i also didnt get my image. i just got the text of the country name. please help!
Posted: Thu May 01, 2008 10:23 pm <select> element can't contain images
"it didn't work" isn't nearly enough to go on. What are you trying to accomplish? What EXACTLY did you do to accomplish it? By this, I mean post the fragment for the listbox (and no more). What did you expect to happen? What actually happened?
As for images, a listbox can only display text. Furthermore, the <select> only allowed to have <option> and <optgroup> elements (and whitespace text) as children. Note: if you follow the link, you'll see a fragment of the HTML DTD:
The "OPTGROUP|OPTION)+" is what means <select> can only have <option> and <optgroup> children; the '+' means '1 or more'. Learning how to read a DTD is very helpful.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum