--- Hendra Susanto <[EMAIL PROTECTED]> wrote:
> i have problems with form submission..
> i have a large database of items, i used form input to search for
> specific items.
> The search result then displays some of the items. customer can click
> each one of them to see the full-details of each items. But then when
> customer wants to view the next items, he has to click on the back
> button. the problem i get below error. Can anyone help me out with a
> solution?
> thanks
>
>
> Warning: Page has Expired The page you requested was created using
> information you submitted in a form. This page is no longer available.
> As a security precaution, Internet Explorer does not automatically
> resubmit your information for you.
>
> To resubmit your information and view this Web page, click the Refresh
> button.
>
> hendra
This question comes up frequently in the group since MS has a hard time
following anyone's standard other than their own. The trick is to add this
line to the top of your program.
_____
<?php header("Cache-control: private"); ?>
<html>
<head>
...
Note that the opening PHP tag is on the first line, first character position.
If you fail to do this, you will run into another set of errors that say, in
effect, "Can't write the headers because the headers have already been sent."
You need to do any header work (including cookies and session variables) before
you start to output any HTML to the program. This is the HTTP head (not the
HTML head) that contains header() statements, setcookie() statements and any
references to write to sessions.
Good luck.
James
_____
James D. Keeline
http://www.Keeline.com http://www.Keeline.com/articles
http://Stratemeyer.org http://www.Keeline.com/TSCollection
http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Summer Semester Begins Jun 20 -- New Classes Start Every Few Weeks.
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/