kenabbott
asked on
passing hidden field values via URL
Hi
I have a PHP form with a value stored in a hidden field. I want to pass this value to another page via the url when a sumbit button is clicked - what is the easiest way of doing this??
Cheers
Ken
I have a PHP form with a value stored in a hidden field. I want to pass this value to another page via the url when a sumbit button is clicked - what is the easiest way of doing this??
Cheers
Ken
why do you want to pass the value in a url any special case ?
if not cant u directly refer to it ?
$hidden1 = $_POST['myhide'];
$hidden1 = $_GET[''myhide'];
if not cant u directly refer to it ?
$hidden1 = $_POST['myhide'];
$hidden1 = $_GET[''myhide'];
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Will it be all right if the values are displayed on the address bar? If it is, just type something like:
<a href="page1.php?field1=<? echo $field1Value; ?>">New page with value inserted</a>
Then in the next page just call the value using $_GET.
Hope this can help.