I have a form that has two options: Return and Exchange.
If Return is selected, the lower fields need to become “n/a” as values. If Exchange is selected the values input need to remain.
This doesn’t seem to do the trick:
$exchname = addslashes($_POST["exchname"]);
$exchsize = addslashes($_POST["exchsize"]);
if($returntype = "return"){
$exchname = "n/a";
$exchsize = "n/a";
}
Any pointers on what’s going wrong will be greatly appreciated.
please use two = like this