FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » multi-page form
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: multi-page form [message #174680 is a reply to message #174679] Mon, 27 June 2011 18:24 Go to previous messageGo to previous message
me is currently offline  me
Messages: 192
Registered: September 2010
Karma:
Senior Member
On 6/27/2011 1:41 PM, William Gill wrote:
> On 6/27/2011 1:31 PM, Bill B wrote:
>> Once the values of the form have been processed, assign them to session
>> variables, which will survive from page to page so long as the session
>> has not been unset or destroyed. On each page set $someformvar =
>> $_SESSION['someformvarvalue']. The fields in the form can be populated
>> with the value of the session variables using something like
>> value="<?php echo $someformvar ?>".
>
> You may be missing my point. I know how to set and get session
> variables, but I need to insure "the values of the form have been
> processed" if the user hits the back button, or otherwise returns to a
> previous form page.

Does each page have its own submit button? If so, pressing the submit
button will process the form on that page. While hitting the back button
on the browser has its own set of problems, it doesn't unprocess the
page, but the page could be reprocessed if the user hits the submit
button again.

You could display the form dynamically, and if the user goes backward,
and if the form was posted and field session variables are already set,
you can dispay an error or warning, then send them on to the next
page/form that should be completed and processed.

Bill B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to get php5-mbstring where people can use it
Next Topic: Copying data between databases
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 13:53:35 GMT 2024

Total time taken to generate the page: 0.05581 seconds