This is currently befuddling me and it's a little bit of html/php but the thing that isn't working is the php...
Basically, my issue is that my <select> doesn't create a text value to be input into a mysql table like so...
Page 1
and I'm trying to input it into a mysql table...
[PHP]
<?php
$nam=$_POST['name'];
mysql_query("IN SERT INTO `user_table`(`n ame`) VALUES ('$nam');
?>[/PHP]
The field Name is set as a text type, and I am confused as to what is wrong.
Basically, my issue is that my <select> doesn't create a text value to be input into a mysql table like so...
Page 1
Code:
<select name='name'> <option value='Yay'>yay</option> </select>
[PHP]
<?php
$nam=$_POST['name'];
mysql_query("IN SERT INTO `user_table`(`n ame`) VALUES ('$nam');
?>[/PHP]
The field Name is set as a text type, and I am confused as to what is wrong.
Comment