checkbox value assigns some value to hidden text field
<p>I have a hidden checkbox whose value (either 1 or 0) is gotten from the url via GET:</p>

<p><code>if (isset($_GET['somecheckboxid'])) {
   $valuehere = urldecode($_GET['somecheckboxid']);
}</code></p>

<p>in the form, the hidden checkbox value is inserted via echo:</p>

<p>input name="somecheckboxid" id="somecheckboxid"  type="hidden" value=""</p>

<p>This is where I hit a brick wall.
I have a hidden text field that needs it's value assigned based on the value of the hidden checkbox.  checkbox value "1" assigns textbox value "blue" or check box value "0" assigns "null"</p>

<p>if
input name="someid" id="someid"  type="hidden" value="1" 
then 
input type="text" id="hiddentext" name="hiddentext" type="hidden" value="blue"</p>

<p>If 
input name="someid" id="someid"  type="hidden" value="0" 
then 
input type="text" id="hiddentext" name="hiddentext" type="hidden" value="null"</p>
