bradgrafelman;10982300 wrote:I think we'd need to see more of the actual PHP code (the HTML code is irrelevant to the error message - PHP doesn't know about or care what your HTML looks like).
@: Your "code" doesn't do anything at all. If you were referring to the correct syntax, we'd have to see the context it's being used in; your version could be incorrect and cause a parse error while funkymonkey's will work just fine.
EDIT: Also, funkymonkey, note that you can't store an array in MySQL, so I'm not even sure what it is you're hoping to do.
I have an html survey with checkbox input questions. I want to store the answers of the questions in a table in mysql. However, whenever I try it out, the mysql is always blank in those spaces.
VALUES ('$_POST[lastname]','$_POST[firstname]','$_POST[middlename]','$_POST[birthdate]',
'$_POST[streetaddress]','$_POST[city]','$_POST[state]','$_POST[zip]','$_POST[phone]',
'$_POST[email]','$_POST[contactmethod]','$_POST[yourgender]','$_POST[yourorientation]',
'$_POST[ethnicity]','$_POST[yourpresentation]','$_POST[bodytype]','$_POST[height]',
'$_POST[weight]','$_POST[felony]','$_POST[partnersgender]','$_POST[partnersorientation]',
'$_POST[partnerethnicity]','$_POST[partnerspresentation]','$_POST[partnerbodytype]',
'$_POST[partnersage]','$_POST[partnersheight]','$_POST[turnon]','$_POST[turnoff]',
'$_POST[celebritycrush]','$_POST[firstthing]','$_POST[dealbreaker]')";
Is it possible to store the results of an checkbox input on an html form into a mysql database? If so, how?