Re: Storing values between multiple page forms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote:

> On Tue, Mar 11, 2008 at 11:11 AM, Matty Sarro <msarro@xxxxxxxxx> 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); } ?>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux