Re: Storing values between multiple page forms

From: Date: Tue, 11 Mar 2008 15:48:26 +0000
Subject: Re: Storing values between multiple page forms
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-271299@lists.php.net to get a copy of this message
On Tue, Mar 11, 2008 at 11:11 AM, Matty Sarro <msarro@gmail.com> wrote: > Greets all! > I am working on a minor project for work for entering inventory information > for servers we ship out. > > Here is my plan: > First page - > Get client name, number of servers, and find number of miscellaneous > equipment(s) being shipped (UPS's, monitors, etc) [snip!] > I'm still planning this out... my major concern is how would I maintain > values between pages? <?php session_start(); $_SESSION['value'] = $your_sanitized_value_from_POST; $_SESSION['value2'] = $your_second_sanitized_value; echo "<pre />\n"; print_r($_SESSION); echo "</pre>\n"; ?> RTFM: http://php.net/session Keep in mind, it'll only work on the same server and same domain. Otherwise, you may want to look into using wildcard cookies. -- </Dan> Daniel P. Brown Senior Unix Geek <? while(1) { $me = $mind--; sleep(86400); } ?>

« previous php.general (#271299) next »