Click here to Skip to main content
14,920,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
dear sir,
i want to get two values from page1.php and page2.php.
from page1.php i want to get val1. and from page2 i want to get val2 in main.php page.
in main.php i want to bind val1 in textbox and val2 in hidden field.
plz help...
Posted
Updated 7-Jul-14 21:54pm
v2
Comments
Arun-23 8-Jul-14 4:36am
   
use post method (or) store it in db and fetch it in main.php :)

1 solution

Look up php Sessions: Use $_SESSION variables.

A couple of options (and others exist):
If pages call one another, the values can be loaded via a form and passed one-page-to-another. Or, you may use AJAX to load the session variable

Since php is serverside, this will require some sort of trigger by a javaScript event.


   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900