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 #174719 is a reply to message #174715] Wed, 29 June 2011 15:08 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:48 AM, Bill B wrote:
> 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

I prefer to keep everything in the same script when possible. It's
easier to make modifications when they are all together ("more
modular"). There are also fewer scripts to manage.

But it's also somewhat of a preference; you'll find others who say I'm
crazy and your way is better.

--
==================
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: Wed Nov 27 11:46:29 GMT 2024

Total time taken to generate the page: 0.04132 seconds