How to submit a form without using post method?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bigjl
Forum Newbie
Posts: 15
Joined: Fri Jan 13, 2006 11:15 am

How to submit a form without using post method?

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
bigjl
Forum Newbie
Posts: 15
Joined: Fri Jan 13, 2006 11:15 am

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
bigjl
Forum Newbie
Posts: 15
Joined: Fri Jan 13, 2006 11:15 am

Post 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:
User avatar
ambivalent
Forum Contributor
Posts: 173
Joined: Thu Apr 14, 2005 8:58 pm
Location: Toronto, ON

Post 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.
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

I wouldn't use Google as an example to follow, their HTML/CSS is not standards compliant.
bigjl
Forum Newbie
Posts: 15
Joined: Fri Jan 13, 2006 11:15 am

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