Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #2354

Re: multi-page form

From Bill B <me@privacy.net>
Newsgroups comp.lang.php
Subject Re: multi-page form
Date 2011-06-27 13:31 -0400
Organization A noiseless patient Spider
Message-ID <iuaepo$ps6$1@dont-email.me> (permalink)
References <iuabqa$530$1@dont-email.me>

Show all headers | View raw


On 6/27/2011 12:40 PM, William Gill wrote:
> I am working on a form that will traverse many pages (lots of context
> and a few inputs on each page). My concern is the user navigating back
> and forth between pages w/o losing data (i.e. via the back button).
>
> As far as I can tell, I need to integrate ECMA script, XMLHttpRequest,
> and session variables, triggered by the onLoad and onUnload events.
>
> Are there any other approaches that I should look into?

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 ?>".

Bill B

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

multi-page form William Gill <noreply@domain.invalid> - 2011-06-27 12:40 -0400
  Re: multi-page form Bill B <me@privacy.net> - 2011-06-27 13:31 -0400
    Re: multi-page form William Gill <noreply@domain.invalid> - 2011-06-27 13:41 -0400
      Re: multi-page form Bill B <me@privacy.net> - 2011-06-27 14:24 -0400
  Re: multi-page form Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-27 17:32 -0400
    Re: multi-page form William Gill <nospam@domain.invalid> - 2011-06-27 18:01 -0400
      Re: multi-page form Bill B <me@privacy.net> - 2011-06-27 18:18 -0400
        Re: multi-page form Graham Hobbs <ghobbs@cdpwise.net> - 2011-07-05 20:06 -0400
      Re: multi-page form Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-27 18:54 -0400
        Re: multi-page form William Gill <nospam@domain.invalid> - 2011-06-28 04:22 -0400
          Re: multi-page form Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-28 06:53 -0400
            Re: multi-page form William Gill <nospam@domain.invalid> - 2011-06-28 12:13 -0400
              Re: multi-page form Bill B <me@privacy.net> - 2011-06-28 14:00 -0400
                Re: multi-page form Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-28 15:02 -0400
                Re: multi-page form Bill B <me@privacy.net> - 2011-06-28 15:06 -0400
                Re: multi-page form Bill B <me@privacy.net> - 2011-06-28 15:46 -0400
                Re: multi-page form William Gill <nospam@domain.invalid> - 2011-06-28 16:05 -0400
                Re: multi-page form Bill B <me@privacy.net> - 2011-06-28 16:12 -0400
                Re: multi-page form Bill B <me@privacy.net> - 2011-06-28 16:20 -0400
                Re: multi-page form Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-28 18:58 -0400
                Re: multi-page form Jeff North <jnorthau@yahoo.com.au> - 2011-06-29 09:30 +1000
                Re: multi-page form Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-28 20:21 -0400
                Re: multi-page form Jeff North <jnorthau@yahoo.com.au> - 2011-06-29 14:52 +1000
                Re: multi-page form Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-29 07:59 -0400
                Re: multi-page form Bill B <me@privacy.net> - 2011-06-29 08:09 -0400
                Re: multi-page form Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-29 08:41 -0400
                Re: multi-page form Bill B <me@privacy.net> - 2011-06-29 08:48 -0400
                Re: multi-page form Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-29 11:08 -0400
                Re: multi-page form Bill B <me@privacy.net> - 2011-06-29 12:27 -0400
                Re: multi-page form Jeff North <jnorthau@yahoo.com.au> - 2011-06-29 23:10 +1000
                Re: multi-page form Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-29 11:09 -0400
                Re: multi-page form Michael Fesser <netizen@gmx.de> - 2011-06-29 18:56 +0200
                Re: multi-page form Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-29 15:32 -0400
      Re: multi-page form "Peter H. Coffin" <hellsop@ninehells.com> - 2011-06-28 13:57 -0500
  Re: multi-page form Jeff North <jnorthau@yahoo.com.au> - 2011-06-29 08:46 +1000
    Re: multi-page form William Gill <nospam@domain.invalid> - 2011-06-28 19:29 -0400
      Re: multi-page form Jeff North <jnorthau@yahoo.com.au> - 2011-06-29 15:15 +1000
        Re: multi-page form Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-29 08:01 -0400
        Re: multi-page form Michael Fesser <netizen@gmx.de> - 2011-06-29 19:00 +0200
  Re: multi-page form Michael Fesser <netizen@gmx.de> - 2011-06-29 19:05 +0200
    Re: multi-page form William Gill <nospam@domain.invalid> - 2011-06-29 13:44 -0400

csiph-web