Re: Storing values between multiple page forms

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

 



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); } ?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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