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 #174714 is a reply to message #174713] Wed, 29 June 2011 12:41 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
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.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Sat Nov 30 15:00:05 GMT 2024

Total time taken to generate the page: 0.04120 seconds