Alter other fields based on one field input with PHP?
<p>I have a form that has two options: Return and Exchange.
If Return is selected, the lower fields need to become "<strong><em>n/a</em></strong>" as values. If Exchange is selected the values input need to remain.</p>

<p>This doesn't seem to do the trick:</p>

<pre><code>  $exchname = addslashes($_POST["exchname"]);
  $exchsize = addslashes($_POST["exchsize"]);

  if($returntype = "return"){
     $exchname = "n/a";
     $exchsize = "n/a";
  }
</code></pre>

<p>Any pointers on what's going wrong will be greatly appreciated.</p>
