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


Groups > comp.lang.php > #2394

Re: multi-page form

From Bill B <me@privacy.net>
Newsgroups comp.lang.php
Subject Re: multi-page form
Date 2011-06-29 08:48 -0400
Organization A noiseless patient Spider
Message-ID <iuf6vb$710$1@dont-email.me> (permalink)
References (12 earlier) <iudr6o$263$1@dont-email.me> <vqbl07t9b6chma23spt2lnkqt8d01sl7oi@4ax.com> <iuf42j$m2e$1@dont-email.me> <iuf4ma$q2m$1@dont-email.me> <iuf6ik$6qf$1@dont-email.me>

Show all headers | View raw


On 6/29/2011 8:41 AM, Jerry Stuckle wrote:
> On 6/29/2011 8:09 AM, Bill B wrote:
>> On 6/29/2011 7:59 AM, Jerry Stuckle wrote:
>>> On 6/29/2011 12:52 AM, Jeff North wrote:
>>>> Enlighten me. How do you disable the back button without using
>>>> JavaScript?
>>>
>>> By using the Location: header call to redirect the browser to the new
>>> page.
>>
>> Jerry, can you unpack that? I can see that working when the user goes
>> back, but isn't that code there when the user arrives to that page the
>> first time? Or, are you checking for session variables, and if they are
>> set, the location:header does not execute?
>>
>> Bill B
>>
>
> You obviously don't make the header location call the first time you
> access the page. Only when the form has been submitted.
>
> You submit the form to the same page the form is on, and process all the
> data there (a good idea anyway - that way the display and processing of
> the form are all in the same script). Once the user has submitted the
> form and you've processed the data, use the location header to redirect
> to the next page.

By habit, possibly a bad one, I process forms in a separate script. For 
example, form.php is processed in form_do.php. Is that a bad idea or a 
"less good one" to your way of thinking?

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