Hi,
I know this is easy, but I can't get my code to accept hidden variables. I have the following form that I thought would pass the value of name to the form.
<form method=POST action="<?php echo $_SERVER['PHP_SELF']?>?action=insert">
<input type="hidden" name="name" value="$name">
<input type="hidden" name="address" value="$address">
<input type="submit">
</form>
I output $name to the screen before I submit and it's correct, but when I get to the next form (which is in the same script) it can't find that value. Is there a certain way to retrieve hidden data?
Thanks!!
I know this is easy, but I can't get my code to accept hidden variables. I have the following form that I thought would pass the value of name to the form.
<form method=POST action="<?php echo $_SERVER['PHP_SELF']?>?action=insert">
<input type="hidden" name="name" value="$name">
<input type="hidden" name="address" value="$address">
<input type="submit">
</form>
I output $name to the screen before I submit and it's correct, but when I get to the next form (which is in the same script) it can't find that value. Is there a certain way to retrieve hidden data?
Thanks!!