Professional Web Applications Themes

[PHP] back button and forms - PHP Development

GET method has restrictions -- you are only guaranteed proper handling of the first 1024 (or some such limit) after which the behaviour is considered undefined. Thus using the GET method is generally only feasible for small forms. Cheers, Rob. On Wed, 2003-08-20 at 14:08, rush wrote: > "Tim Winters" <csnmsamplingtechnologies.com> wrote in message > news:001101c36737$d3c32670$1401a8c0TIMS... > > Is there any way to avoid this from happening? > > instead of POST, you could use GET as form method. > > More nicely, but also much more work, is to use N layers on one page for > each group ...

  1. #1

    Default Re: [PHP] Re: back button and forms

    GET method has restrictions -- you are only guaranteed proper handling
    of the first 1024 (or some such limit) after which the behaviour is
    considered undefined. Thus using the GET method is generally only
    feasible for small forms.

    Cheers,
    Rob.


    On Wed, 2003-08-20 at 14:08, rush wrote:
    > "Tim Winters" <csnmsamplingtechnologies.com> wrote in message
    > news:001101c36737$d3c32670$1401a8c0TIMS...
    > > Is there any way to avoid this from happening?
    >
    > instead of POST, you could use GET as form method.
    >
    > More nicely, but also much more work, is to use N layers on one page for
    > each group of inputs and to switch layers by javascript. That way, all data
    > will be posted as one big form, in single action. This would also solve
    > nasty problem your solution has if user clicks on new window in the middle
    > of forms and contionues to enter different data in both of windows, this is
    > quiote likely to confuse dta you are storing to the session.
    >
    > rush
    > --
    > [url]http://www.templatetamer.com/[/url]
    >
    >
    >
    >
    > --
    > PHP General Mailing List ([url]http://www.php.net/[/url])
    > To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
    >
    >
    --
    ..---------------------------------------------.
    | Worlds of Carnage - [url]http://www.wocmud.org[/url] |
    :---------------------------------------------:
    | Come visit a world of myth and legend where |
    | fantastical creatures come to life and the |
    | stuff of nightmares grasp for your soul. |
    `---------------------------------------------'
    Robert Cummings Guest

  2. #2

    Default Re: [PHP] back button and forms

    If the form changes the state on the server, ie inserts something to the
    db, you should not output html but instead redirect to another page.
    Then Back button does not go to the post page but to the form page.

    Tim Winters wrote:
    > Hello,
    >
    > I have a series of forms set over a few pages. The entries are stored
    > in session vars and the whole shebang is written to mySQL via PHP at the
    > end of the series of forms. When the user hits the back button an error
    > message comes up with the following
    >
    > Warning: Page has Expired
    > The page you requested was created using information you submitted in a
    > form. This page is no longer available. As a security precaution,
    > Internet Explorer does not automatically resubmit your information for
    > you.
    >
    > To resubmit your information and view this Web page, click the Refresh
    > button.
    >
    >
    > Is there any way to avoid this from happening?
    >
    > Thx
    >
    > Tim Winters
    > Creative Development Manager
    > Sampling Technologies Incorporated
    >
    > 1600 Bedford Highway, Suite 212
    > Bedford, Nova Scotia
    > B4A 1E8
    > [url]www.samplingtechnologies.com[/url]
    > [email]webmastersamplingtechnologies.com[/email]
    > [email]csnmsamplingtechnologies.com[/email]
    > Office: 902 450 5500
    > Cell: 902 430 8498
    > Fax:: 902 484 7115
    >
    >
    Marek Kilimajer Guest

Similar Threads

  1. Flash Forms - Server Side Validation - Back Button
    By RobinK in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: January 3rd, 06:13 PM
  2. Back button
    By Albert Ahtenberg in forum PHP Programming
    Replies: 13
    Last Post: August 7th, 02:13 PM
  3. Replies: 2
    Last Post: July 5th, 03:34 AM
  4. Fillin Forms and then Email Back
    By Susan_Engwall@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 16
    Last Post: April 30th, 11:50 PM
  5. [PHP] back button and forms
    By Chris Sherwood in forum PHP Development
    Replies: 1
    Last Post: August 20th, 05:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139