title: Undefined Index If I Do Not Check Checkbox
body: <p>I seem to have a bizarre happening here. 
  If I check a checkbox on the form then the php script runs perfectly.
  If I don't check the box php reports an undefined index on another  variable.</p>
  
  <p>That's using IIS localhost, checking things.</p>
  
  <p>On the web the published identical script works no matter what.
  Well, virtually identical. I have locally added a variable 'test' POST-ed to php and compared with a hard coded value. That's all.</p>
  
  <p>Here's the html for the checkbox: </p>
  
  <pre><code>&lt;tr&gt;
  &lt;td&gt;Publish Comment?&lt;/td&gt;
  &lt;td&gt;&lt;input name="publishok" value="NO" type="checkbox"&gt; Check Box For Do spanstyle="font-weight: bold;"&gt;Not&lt;/span&gt; Publish&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  </code></pre>
  
  <p>and here's the php for the variable, 'publishok' :</p>
  
  <pre><code>$IP = $_SERVER["REMOTE_ADDR"];
  $publishok = $_POST['publishok'];
  $test = $_POST['test'];
  if ($test != 'park') die ("Wrong input. Sorry. Go back, try again"); 
  </code></pre>
  
  <p>I suspected my editor PSPad was adding spurious (and invisible) char codes or something so I upgraded to the latest version. No difference.</p>
  
  <p>Can't think what could cause this. </p>
  
  <p>Can anyone help?</p>