p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: variables still in memory?


Message #1 by "Fakhouri, Nathan" <NFakhouri@t...> on Thu, 7 Feb 2002 16:43:20 -0500

	There are 3 pages.  lets call them page1, page2, and page3.  There

are forms on pages 1 and 2.  The forms on page 1 are strictly for validation

(sort of like a username/password deal but one of my own).  Page 2 contains

all the main forms that will be written to a database.  Page 3 basically

thanks the user and sends him on his way.   





	Say the user gets to page 1, and passes validation.  The information

that he inputs in page 1 is passed over to page 2 (some parts of page2 rely

on the information that was submitted from page1).  Now the user completes

all the forms on page 2 and submits the form.  All the data is good, the

data has been written to the database, and the user is now at page3.  If the

user were to hit the back button back to page 2 (for whatever reason,

whether to make a correction, or just out of curiosity) 



	Are all the variables that were once available still in memory,

including the variables that were passed from page1??

	Thanks,



	-Nathan Fakhouri



Message #2 by "sneax" <sneaker@p...> on Thu, 7 Feb 2002 22:50:29 +0100
All variables sended with the "post" method will not be there and the

browser will ask if you want to "repost" these vars or not.



If the vars are send true the "get" method (in the url) then the the page

will show correctly.



:)



----- Original Message -----

From: "Fakhouri, Nathan" <NFakhouri@t...>

To: "beginning php" <beginning_php@p...>

Sent: Thursday, February 07, 2002 10:43 PM

Subject: [beginning_php] variables still in memory?





>

> There are 3 pages.  lets call them page1, page2, and page3.  There

> are forms on pages 1 and 2.  The forms on page 1 are strictly for

validation

> (sort of like a username/password deal but one of my own).  Page 2

contains

> all the main forms that will be written to a database.  Page 3 basically

> thanks the user and sends him on his way.

>

>

> Say the user gets to page 1, and passes validation.  The information

> that he inputs in page 1 is passed over to page 2 (some parts of page2

rely

> on the information that was submitted from page1).  Now the user completes

> all the forms on page 2 and submits the form.  All the data is good, the

> data has been written to the database, and the user is now at page3.  If

the

> user were to hit the back button back to page 2 (for whatever reason,

> whether to make a correction, or just out of curiosity)

>

> Are all the variables that were once available still in memory,

> including the variables that were passed from page1??

> Thanks,

>

> -Nathan Fakhouri

>

>




$subst('Email.Unsub').

>



Message #3 by "Nikolai Devereaux" <yomama@U...> on Thu, 7 Feb 2002 13:51:46 -0800

Chances are that if page2 was the target of some form from page1, then the

browser will pop up a warning dialog telling the user that they need to

repost their form data to the page in order for it to display correctly.



In that case, then, page2 would have all the data from page1.  If they hit

"no" or "cancel" (whatever the button name is), then the browser usually

shows the "Page Expired" error page.



nik





> -----Original Message-----

> From: Fakhouri, Nathan [mailto:NFakhouri@t...]

> Sent: Thursday, February 07, 2002 1:43 PM

> To: beginning php

> Subject: [beginning_php] variables still in memory?

>

>

>

> 	There are 3 pages.  lets call them page1, page2, and page3.  There

> are forms on pages 1 and 2.  The forms on page 1 are strictly for

> validation

> (sort of like a username/password deal but one of my own).  Page

> 2 contains

> all the main forms that will be written to a database.  Page 3 basically

> thanks the user and sends him on his way.

>

>

> 	Say the user gets to page 1, and passes validation.  The information

> that he inputs in page 1 is passed over to page 2 (some parts of

> page2 rely

> on the information that was submitted from page1).  Now the user completes

> all the forms on page 2 and submits the form.  All the data is good, the

> data has been written to the database, and the user is now at

> page3.  If the

> user were to hit the back button back to page 2 (for whatever reason,

> whether to make a correction, or just out of curiosity)

>

> 	Are all the variables that were once available still in memory,

> including the variables that were passed from page1??

> 	Thanks,

>

> 	-Nathan Fakhouri

>

>




> $subst('Email.Unsub').



Message #4 by "Nikolai Devereaux" <yomama@u...> on Thu, 7 Feb 2002 13:53:01 -0800

Damn!  I wish I learned how to be more consise. =)





> -----Original Message-----

> From: sneax [mailto:sneaker@p...]

> Sent: Thursday, February 07, 2002 1:50 PM

> To: beginning php

> Subject: [beginning_php] Re: variables still in memory?

> 

> 

> All variables sended with the "post" method will not be there and the

> browser will ask if you want to "repost" these vars or not.

> 

> If the vars are send true the "get" method (in the url) then the the page

> will show correctly.

> 

> :)



Message #5 by "Fakhouri, Nathan" <NFakhouri@t...> on Thu, 7 Feb 2002 16:57:12 -0500
Hrmm, makes sense.  



Thank You, you guys rock... yes even you nikolai :P



> -----Original Message-----

> From:	sneax [SMTP:sneaker@p...]

> Sent:	Thursday, February 07, 2002 4:50 PM

> To:	beginning php

> Subject:	[beginning_php] Re:  variables still in memory?

> 

> All variables sended with the "post" method will not be there and the

> browser will ask if you want to "repost" these vars or not.

> 

> If the vars are send true the "get" method (in the url) then the the page

> will show correctly.

> 

> :)

> 

> ----- Original Message -----

> From: "Fakhouri, Nathan" <NFakhouri@t...>

> To: "beginning php" <beginning_php@p...>

> Sent: Thursday, February 07, 2002 10:43 PM

> Subject: [beginning_php] variables still in memory?

> 

> 

> >

> > There are 3 pages.  lets call them page1, page2, and page3.  There

> > are forms on pages 1 and 2.  The forms on page 1 are strictly for

> validation

> > (sort of like a username/password deal but one of my own).  Page 2

> contains

> > all the main forms that will be written to a database.  Page 3 basically

> > thanks the user and sends him on his way.

> >

> >

> > Say the user gets to page 1, and passes validation.  The information

> > that he inputs in page 1 is passed over to page 2 (some parts of page2

> rely

> > on the information that was submitted from page1).  Now the user

> completes

> > all the forms on page 2 and submits the form.  All the data is good, the

> > data has been written to the database, and the user is now at page3.  If

> the

> > user were to hit the back button back to page 2 (for whatever reason,

> > whether to make a correction, or just out of curiosity)

> >

> > Are all the variables that were once available still in memory,

> > including the variables that were passed from page1??

> > Thanks,

> >

> > -Nathan Fakhouri

> >

> >




> $subst('Email.Unsub').

> >

> 

> 




> $subst('Email.Unsub').


  Return to Index