Google Chrome issue with POST variables in hidden fields
Posted: Fri May 22, 2009 11:33 am
So I'm trying to do something very basic here: pass a variable via POST to another page, and echo that variable in a subsequent hidden field. I made a generic example:
page #1
page #2
The variable will display when the echo statement is placed outside the hidden field, but will NOT display inside the hidden field.
I am only having this problem with Google Chrome. I'm about to lose my mind. Any ideas?
page #1
Code: Select all
<body><form id="form1" name="form1" method="post" action="aa.php">
<label>
<input type="text" name="box1" id="box1" />
</label>
<label>
<input type="submit" name="submit" id="submit" value="Submit" />
</label>
</form>
</body>Code: Select all
<body><form id="form1" name="form1" method="post" action="">
Display passed variable: <?php echo $_POST["box1"]; ?><br />
<input name="take_box1" type="hidden" id="take_box1" value="<?php echo $_POST["box1"]; ?>" />
</form>
</body>I am only having this problem with Google Chrome. I'm about to lose my mind. Any ideas?