Link to home
Start Free TrialLog in
Avatar of MrTV
MrTVFlag for Thailand

asked on

How can I pass variable from one page to another page

<?$Acc=$_POST['field_AccNo'];?>

How can I pass  $Acc from one page to nother page
Avatar of ldbkutty
ldbkutty
Flag of India image

It depends how you have the $Acc field is....Do you display that in a FORM or do you want to pass it as a hidden variable...!?
ASKER CERTIFIED SOLUTION
Avatar of ldbkutty
ldbkutty
Flag of India image

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
Avatar of Section37
Section37

Another thought...

You could also set it as a global varible or set it in a PHP session.  As a global var or a session a user will not see it in the link or in the HTML code of the form.

Can explain this process more if desired.

Section 37
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
Avatar of MrTV

ASKER

Hi Section37

please tell me more about grobal variable

Than you
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
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
By the way, It is advisednot to use globals. Anyway...
:)
WASIF
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
SOLUTION
Avatar of Bernard Savonet
Bernard Savonet
Flag of France image

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