Link to home
Start Free TrialLog in
Avatar of kenabbott
kenabbottFlag for United Kingdom of Great Britain and Northern Ireland

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
Avatar of jericotolentino
jericotolentino
Flag of Philippines image

Hi,

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.
Avatar of sajuks
sajuks

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'];

ASKER CERTIFIED SOLUTION
Avatar of shai126
shai126

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial