For Programmers: Free Programming Magazines  


Home > Archive > PHP SQL > September 2004 > Back button not working after PHP submission?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Back button not working after PHP submission?
Aaron Whiffin

2004-09-10, 3:57 pm

If you go to www.classiccarsforsale.co.uk and enter "ferrari" for example in
the search box, you get a list of cars generated by PHP/MySQL.

If you then click on a car you see its advert

If you then click the "back" button in IE you get a "Warning, this page has
expired" message.

Other sites seem to display the last page generated rather than this
message.

How do I do this?

Many thanks


Aaron Whiffin

2004-09-13, 9:01 am


> If you go to www.classiccarsforsale.co.uk and enter "ferrari" for example

in
> the search box, you get a list of cars generated by PHP/MySQL.
>
> If you then click on a car you see its advert
>
> If you then click the "back" button in IE you get a "Warning, this page

has
> expired" message.
>
> Other sites seem to display the last page generated rather than this
> message.
>
> How do I do this?


Anyone?


Kevin Thorpe

2004-09-13, 3:57 pm

Aaron Whiffin wrote:
> If you go to www.classiccarsforsale.co.uk and enter "ferrari" for example in
> the search box, you get a list of cars generated by PHP/MySQL.
>
> If you then click on a car you see its advert
>
> If you then click the "back" button in IE you get a "Warning, this page has
> expired" message.
>
> Other sites seem to display the last page generated rather than this
> message.


I can't get the website, but your problem is probably that the search
form uses POST. For a query which doesn't update a database you should
really use GET. That way someone eaiting for a Ferrari can bookmark the
page with the query already loaded.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com