Forum Moderators: coopster

Message Too Old, No Replies

POST to GET Conversion

         

lexa1999

7:16 pm on Sep 7, 2005 (gmt 0)

10+ Year Member



Is there a simple way to convert all forms on a php-based site from method=post to method=get?

I am doing this because of the need to re-post all data if you hit the back button--it's user unfriendly.

I tried simply modifying the method (literally changing to method=GET any time I saw POST) but problems arise in subsequent pages in displaying items the user put in his cart earlier.

Thanks for any advice-

killroy

7:41 pm on Sep 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well in really simple cases it might work if you add $_POST=$_GET on the target pages.

lexa1999

7:46 pm on Sep 7, 2005 (gmt 0)

10+ Year Member



Hi Killroy,

Thanks for your response.

So you're suggesting I add $_POST=$_GET at the top of all pages form data is being posted to?

ergophobe

3:57 pm on Sep 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



And obviously change the method in the submission form.

lexa1999

4:12 pm on Sep 8, 2005 (gmt 0)

10+ Year Member



I found a great article on this subject:

[shiflett.org...]