Page 1 of 1

How to submit a form without using post method?

Posted: Tue May 23, 2006 6:03 am
by bigjl
Hi all,
Does anyone can give me any suggestion of the following requirements. This is about HTML and PHP working together.
Like Google or Yahoo, we don't get any "Confirm" dialog saying "The page you ae trying to view contains POSTDATA that has expired from cache. If you resend the data, any action the form carried out will be repeated. To resend the data click OK. Otherwirse, click Cancel" and you don't have to choose "Yes" or "No".

1. a HTML form without POST method.
2. does not show the "Confirm" dialog when "Go back one page" button on internet explorer is clicked.

Anyone can help out with this?
Thank you

Posted: Tue May 23, 2006 6:11 am
by Chris Corbyn
Go to an intermediate page that proccesses yout post data and then do a header() redirect to a success page. If you click 'back' you will not get that message.

EDIT | Please do not double post.

Posted: Tue May 23, 2006 6:32 am
by bigjl
d11wtq wrote:Go to an intermediate page that proccesses yout post data and then do a header() redirect to a success page. If you click 'back' you will not get that message.
EDIT | Please do not double post.
Thanks for replay.
There is question that how the intermedia page gets my post data without using POST method on the previous HTML page which submits my data?


Thank you

Posted: Tue May 23, 2006 7:09 am
by Chris Corbyn
bigjl wrote:
d11wtq wrote:Go to an intermediate page that proccesses yout post data and then do a header() redirect to a success page. If you click 'back' you will not get that message.
EDIT | Please do not double post.
Thanks for replay.
There is question that how the intermedia page gets my post data without using POST method on the previous HTML page which submits my data?


Thank you
Why do you need to avoid using POST? Use GET instead if you don't want POST but the method I mention above will never generate those "The page contains POST data" messages even if you did use POST.

Posted: Tue May 23, 2006 9:52 am
by bigjl
d11wtq wrote:
bigjl wrote:
d11wtq wrote:Go to an intermediate page that proccesses yout post data and then do a header() redirect to a success page. If you click 'back' you will not get that message.
EDIT | Please do not double post.
Thanks for replay.
There is question that how the intermedia page gets my post data without using POST method on the previous HTML page which submits my data?


Thank you
Why do you need to avoid using POST? Use GET instead if you don't want POST but the method I mention above will never generate those "The page contains POST data" messages even if you did use POST.
Have you seen the resource code of google home page? There is no method in form tag. How does google do the trick? :lol:

Posted: Tue May 23, 2006 9:58 am
by ambivalent
bigjl wrote:
Have you seen the resource code of google home page? There is no method in form tag. How does google do the trick?
Default method is GET and is therefore not specified in Google's form. You can see it in the results page with your search terms in the URL.

Posted: Tue May 23, 2006 10:20 am
by jayshields
I wouldn't use Google as an example to follow, their HTML/CSS is not standards compliant.

Posted: Wed May 24, 2006 6:21 am
by bigjl
d11wtq wrote:Go to an intermediate page that proccesses yout post data and then do a header() redirect to a success page. If you click 'back' you will not get that message.

EDIT | Please do not double post.
As d11wtq suggested, my problem solved. Thanks