Okay guys, I have a form that allows people to submit to a database and I need an array to state which category the information they submit will go into.
I need a drop down menu like this:
<select name="categories">
<option selected>Option 1
<option>Option 2
<option>Option 3
<option>Option 4
<option>Option 5
</select>
If the user clicks "Option 2" it needs to register in the database as "2". I know that I need to use an array but I'm not sure how to go about it using forms, never done it before. I have read the article on here but I can't understand it - can someone help me?
Thanks,
Adam.