Re: Storing values between multiple page forms
| From: | Matty Sarro | Date: | Tue, 11 Mar 2008 15:55:39 +0000 |
| Subject: | Re: Storing values between multiple page forms | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271303@lists.php.net to get a copy of this message | ||
Yeah, I'm working on this with the hopes of it turning into a full module
for a larger project I'm working on... but I'm still a bit of a noob :)
Thanks for the assistance guys!
On Tue, Mar 11, 2008 at 11:48 AM, Daniel Brown <parasane@gmail.com> wrote:
> 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); } ?>
>