Hi !
my php process for wont pick up on a hidden field
this is a snippet from my html
HTML Code:
<input type="hidden" name="marital" value="Couple" />
Sex?
<select name="asex">
<option>Prefer not to say</option>
<option>Male</option>
<option>Female</option>
</select><br><br>
and this is a snippet from my php
PHP Code:
$asex = $_POST['asex'];
$mari = $_post['marital'];
mysql_query("INSERT INTO Profiles (asex, marital) VALUES ('$asex', '$mari') ") or die(mysql_error());
its adding all my fields where the user has to select but not the hidden field, could you give me an idea as to why please?
Thanks
Shaz x
__________________
mysql_connect("localhost", "brain", "sharon") or die(mysql_error());
mysql error: brain doesn't exist!
Last edited by Sharon_leic; 02-13-2008 at 11:20 PM..
|