How to properly Insert into MySQL from HTML drop down/ select form.
I ask a similar question a little earlier but didn’t get the exact answers I was looking for, or I did just more problems arose afterward.
Here’s my original question:
http://answers.yahoo.com/question/index;_ylt=AqasyIF588vYIc3i2WdKOV_sy6IX;_ylv=3?qid=20080804085924AAo7GQs
I have the select form submitting information into the database but when viewing the field it created it displays “Array” instead of the value of the selected field (which is what I’m wanting it to display.
Here’s some code I have for the form/php:
if ( $_POST['sendbutton'] ) { $sub = "1"; } ?>
Of course there’s lot more code, but this is just little snippets I’ve extracted that I know the problem resolves around.
So basically once the form is submitted I need which value is selected on the select form to be sent into the database table’s cell called region.
Again, it’s currently displaying the text Array in the region column where I would like the value of the select option to be.
Thanks in advance.
Sneaky Redirects













One Response to “How to properly Insert into MySQL from HTML drop down/ select form.”
An array print out the button in your mysql_query statement is bound to see what then necessarily you see what then necessarily you into trouble if one of the enctype.