Re: Form asking to refresh when I hit the back button
| From: | Danny Shepherd | Date: | Thu, 01 Aug 2002 15:01:21 +0000 |
| Subject: | Re: Form asking to refresh when I hit the back button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110676@lists.php.net to get a copy of this message | ||
This is generally caused by using POST as the form's methods. Try using GET
instead.
Danny.
----- Original Message -----
From: "DonPro" <donpro@lclcan.com>
To: "php list" <php-general@lists.php.net>
Sent: Thursday, August 01, 2002 3:57 PM
Subject: [PHP] Form asking to refresh when I hit the back button
> Not sure if this is a PHP question but I've traced the problem to a PHP
> statement.
>
> I have a form that when submitted, displays a PDF document in the browser
> (using a PDF library). When I click on the back button, it should
redisplay
> my form but instead, displays a warning that data has expired and I need
to
> refresh. Now this never happened until recently so I look at recent
changes
> and traced the problem to one single PHP statement at the top of my file:
>
> session_start();
>
> I am using sessions to pass values between pages and so added the
statement
> to my page so that I could check the value of a variable. When I comment
> out the above statement, I am no longer prompted to refresh.
>
> Question: How can I have my cake and eat it to?
>
> Thanks,
> Don
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>