Hi
I have a drop down select box which contains the option other
beside this i have a tewxt input called "other_option " that can be filled in if other is selected.
On my insert page this is the code i am trying to use to determin what goes into the database
//for the property type
if($_POST['property_type']="Other"){
$property_type = $_POST['otherprop'];
} elseif ($_POST['property_type'] != 'Other'){
$property_type = $_POST['property_type'];
}
Now the Other bit is working fine and the value will go into the database however the value from the select box is not coming through. Can anyone see what i am doing wrong.
?
Thanks