how can I get rid of this...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • WindAndWaves

    how can I get rid of this...

    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.

    How can I get rid of this in my php pages - that is, if there is no real form that people are going to resubmit....

    TIA

    - Nicolaas


  • Dani CS

    #2
    Re: how can I get rid of this...

    WindAndWaves wrote:[color=blue]
    > 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.[/color]

    This happens when the browser is asked to reload a page fetched with the
    POST method (e.g. a submitted form).
    [color=blue]
    >
    > How can I get rid of this in my php pages - that is, if there is no real form that people are going to resubmit....[/color]

    When receiving the contents of a form, use

    header("Locatio n: http://yourserver/yourpath/form_done");

    to redirect the browser to another page, which will be fetched via GET
    and is "safe" to reload.

    [color=blue]
    >
    > TIA
    >
    > - Nicolaas
    >
    >[/color]

    Comment

    • WindAndWaves

      #3
      Re: how can I get rid of this...


      "Dani CS" <contusiones.me rluza@yahoo.es. quita-la-merluza> wrote in message news:cth914$b4i $1@news.ya.com. ..[color=blue]
      > WindAndWaves wrote:[color=green]
      > > 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.[/color]
      >
      > This happens when the browser is asked to reload a page fetched with the
      > POST method (e.g. a submitted form).
      >[color=green]
      > >
      > > How can I get rid of this in my php pages - that is, if there is no real form that people are going to resubmit....[/color]
      >
      > When receiving the contents of a form, use
      >
      > header("Locatio n: http://yourserver/yourpath/form_done");
      >
      > to redirect the browser to another page, which will be fetched via GET
      > and is "safe" to reload.[/color]

      so i should have

      form.php with ....

      <?php if ($_POST("submit ") {
      header("Locatio n: formdone.php");
      }
      ?>
      <FORM METHOD="get" ACTION="form.ph p">

      ..... and formdone.php with ....

      $answerfromform = $_POST("content ")


      ???

      -TIA

      - Nicolaas


      Comment

      • Amir Khawaja

        #4
        Re: how can I get rid of this...

        WindAndWaves wrote:[color=blue]
        > "Dani CS" <contusiones.me rluza@yahoo.es. quita-la-merluza> wrote in message news:cth914$b4i $1@news.ya.com. ..
        >[color=green]
        >>WindAndWave s wrote:
        >>[color=darkred]
        >>>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.[/color]
        >>
        >>This happens when the browser is asked to reload a page fetched with the
        >>POST method (e.g. a submitted form).
        >>
        >>[color=darkred]
        >>>How can I get rid of this in my php pages - that is, if there is no real form that people are going to resubmit....[/color]
        >>
        >>When receiving the contents of a form, use
        >>
        >>header("Locat ion: http://yourserver/yourpath/form_done");
        >>
        >>to redirect the browser to another page, which will be fetched via GET
        >>and is "safe" to reload.[/color]
        >
        >
        > so i should have
        >
        > form.php with ....
        >
        > <?php if ($_POST("submit ") {
        > header("Locatio n: formdone.php");
        > }
        > ?>
        > <FORM METHOD="get" ACTION="form.ph p">
        >
        > .... and formdone.php with ....
        >
        > $answerfromform = $_POST("content ")
        >
        >
        > ???
        >
        > -TIA
        >
        > - Nicolaas
        >
        >[/color]

        You may want to look into the HTTP specifications as well. There are
        many little tidbits in there that may prove useful.

        Best regards,
        Amir Khawaja.

        -------------------------
        Rules are written for those who lack the ability to truly reason, But
        for those who can, the rules become nothing more than guidelines, And
        live their lives governed not by rules but by reason.

        - James McGuigan

        Comment

        • Dani CS

          #5
          Re: how can I get rid of this...

          WindAndWaves wrote:[color=blue]
          > "Dani CS" <contusiones.me rluza@yahoo.es. quita-la-merluza> wrote in message news:cth914$b4i $1@news.ya.com. ..
          >[color=green]
          >>WindAndWave s wrote:
          >>[color=darkred]
          >>>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.[/color]
          >>
          >>This happens when the browser is asked to reload a page fetched with the
          >>POST method (e.g. a submitted form).
          >>
          >>[color=darkred]
          >>>How can I get rid of this in my php pages - that is, if there is no real form that people are going to resubmit....[/color]
          >>
          >>When receiving the contents of a form, use
          >>
          >>header("Locat ion: http://yourserver/yourpath/form_done");
          >>
          >>to redirect the browser to another page, which will be fetched via GET
          >>and is "safe" to reload.[/color]
          >
          >
          > so i should have
          >
          > form.php with ....
          >
          > <?php if ($_POST("submit ") {[/color]

          $answerfromform = $_POST['content']; // you should do this here
          [color=blue]
          > header("Locatio n: formdone.php");
          > }
          > ?>
          > <FORM METHOD="get" ACTION="form.ph p">[/color]

          ----------------^ // If you use 'get' here, the problem you stated on
          the first post won't happen. That problem happens when you use 'post'
          (and yes, there are reasons good enough to use 'post'; take the advice
          given by Amir Khawaja and read about the HTTP protocol. In short, you
          want to use 'get' when the processing of the form doesn't involve
          changes in your data (e.g. web searches, customized content), and you
          want to use 'post' when inserting/deleting/updating data (e.g. creating
          a new user, inserting a post into a blog).
          [color=blue]
          >
          > .... and formdone.php with ....
          >
          > $answerfromform = $_POST("content ")[/color]

          ----^ // not here


          You can validate the input from the user only in form.php (because you
          have <form action="form.ph p">. When you use header("Locatio n: ...") to
          redirect the browser, the form data doesn't get passed over to the new
          page (you could manually achieve it if you had the need to).
          [color=blue]
          >
          >
          > ???
          >
          > -TIA
          >
          > - Nicolaas
          >
          >[/color]

          Comment

          • Raj Shekhar

            #6
            Re: how can I get rid of this...

            "WindAndWav es" <access@ngaru.c om> writes:
            [color=blue]
            > 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.
            >
            > How can I get rid of this in my php pages - that is, if there is no
            > real form that people are going to resubmit....
            >[/color]


            Chris Shiflett is an entrepreneur, product designer, and web developer.


            --
            Raj Shekhar System Administrator, programmer and slacker home :
            http://rajshekhar.net blog : http://rajshekhar.net/blog/

            Comment

            • WindAndWaves

              #7
              Re: how can I get rid of this...


              "Raj Shekhar" <rajlist@rajshe khar.net> wrote in message news:m3mzuri3zr .fsf@aragorn.ra jshekhar.net...[color=blue]
              > "WindAndWav es" <access@ngaru.c om> writes:
              >[color=green]
              > > 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.
              > >
              > > How can I get rid of this in my php pages - that is, if there is no
              > > real form that people are going to resubmit....
              > >[/color]
              >
              >
              > http://shiflett.org/articles/guru-speak-nov2004
              >
              > --
              > Raj Shekhar System Administrator, programmer and slacker home :
              > http://rajshekhar.net blog : http://rajshekhar.net/blog/[/color]

              wow that was a really good explanation... thank you.


              Comment

              • R. Rajesh Jeba Anbiah

                #8
                Re: how can I get rid of this...


                WindAndWaves wrote:[color=blue]
                > Warning: Page has Expired The page you requested was created using[/color]
                information you submitted in a form. This page is no longer[color=blue]
                > available. As a security precaution, Internet Explorer does not[/color]
                automatically resubmit your information for you.[color=blue]
                >
                > To resubmit your information and view this Web page, click the[/color]
                Refresh button.[color=blue]
                >
                > How can I get rid of this in my php pages - that is, if there is no[/color]
                real form that people are going to resubmit....


                <http://groups.google.c om/groups?as_umsgi d=abc4d8b8.0408 172111.3fffe442 @posting.google .com>

                --
                <?php echo 'Just another PHP saint'; ?>
                Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

                Comment

                Working...