Re: The data get lost when click back button

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

 



On Sat, 2007-06-16 at 12:47 -0300, Tom wrote:
> How can I make in simple way that, the data in the fields don't get lost 
> when the user returning to the form?

You can add the field data to a session:

$field1 = $_GET['field1'];
$_SESSION['field1'] = $field1;

// then to get them back again

if(isset($_SESSION['field1']))
{
    $field1 = $_SESSION['field1'];
}

--Paul

All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 

-- 
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