Replace text form to List form.
Hi,
I have made a user registration form. One of the fields is the State but instead of having a blank text field for the user to type it out, I have made an MYSQL database of all the states. So I want to replace the text field to a list form. I know how to make the list menu with the database but it will not insert it in my users db.
Thanks
Comments
hi there
Hi,
Can you post the list box code you have written. These are the steps you should have followed. And from your mail I understand thats what you have done. If you are still not getting the value in the db. There is probably something wrong with the code you have written. Would be able to help you better if you would show us the code snippet.
1. Create a list box using <SELECT>
2. Map it to the DB by <OPTION value='[valuefromdb]'>[valuefromdb]</OPTION>
3. Thats it. it should work.
Are your sure you have used the 'value' attribute in the option tag without syntax errors?
You must me logged in to write a comment.