I've got the following code at the bottom of a form:
<input type="hidden" name="subject_line" value="<?php echo $row['subject_line']; ?>"><br />
<input type="hidden" name="_head_id" value"<?php echo $_GET['head_id']; ?>">
<br /><input type="submit" class=button name="_headsubmit" value="save changes"></form>
If I view source on the page I see the following:
<input type="hidden" name="subject_line" value="TG9vayB3aGF0IHdlIGhhdmUgb24gb2ZmZXIgZm9yIE9jdG9iZXI="><br />
<input type="hidden" name="_head_id" value"20">
<br /><input type="submit" class=button name="_headsubmit" value="save changes"></form>
On the page processing the form I do a var dump of $_POST which gives:
["subject_line"]=>
string(52) "TG9vayB3aGF0IHdlIGhhdmUgb24gb2ZmZXIgZm9yIE9jdG9iZXI="
["_head_id"]=>
string(0) ""
["_headsubmit"]=>
string(12) "save changes"
The values for subject_line and headsubmit are being passed as expected but head_id is not passing the value of 20. Its probably something simple, but if anyone has any ideas what I'm doing wrong I'd sure be grateful.
Blu