Passing Values to multiple pages

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sarbas
Forum Commoner
Posts: 64
Joined: Thu Jan 04, 2007 5:51 am

Passing Values to multiple pages

Post by sarbas »

Hi.


I want to pass the text box values from one page to multiple pages.
For example

User entered a value in a textbox ( first page). I get that value using following code in second page

Code: Select all

$sar=$_REQUEST['textboxname'];
echo $sar;
But I want to use this text box value or $sar in all of my pages.

Is there anyway... let me know......

Thanks With regards
Sarbas
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

You'll want to take a look at sessions if you want to keep data available during multiple page requests.

http://php.net/session should get you started, give it a read and then let us know if you have any problems.
sarbas
Forum Commoner
Posts: 64
Joined: Thu Jan 04, 2007 5:51 am

Post subject: Passing Values to multiple pages

Post by sarbas »

Hi Jcart,
Thanks For your reply...Am read it....And i implemented successfully..

Thanks
Sarbas
Post Reply