Forum Moderators: coopster

Message Too Old, No Replies

Passing variables between PHP pages

         

JustJon

10:18 pm on Mar 4, 2005 (gmt 0)

10+ Year Member



Heyas. I'm building a form that gets processed on a second page, but upon processing failure should go back to page 1 and repopulate the form.

My problem is that the data is too big to be base64 encoded and passed along the url. Is there a way I can have page 2 go back to page 1 and pass back the data without causing a 414 (url too big) error?

Thanks very much.

Timotheos

11:10 pm on Mar 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi JustJon,

Best thing for this are sessions [php.net].

Tim

JustJon

7:30 pm on Mar 6, 2005 (gmt 0)

10+ Year Member



The problem with sessions is that page 1 and page 2 may end up being on seperate servers because we are accessing a cluster with load balancing. With that being the case, the original page may be on www1, make a call to www2, and then go back to www3, even though they all make calls to www.

dmmh

7:57 pm on Mar 6, 2005 (gmt 0)

10+ Year Member



dont use $_GET, use $_POST instead. which is safer anyway
I dont see the problem really :)