Results 1 to 3 of 3

Thread: Autoredirect and $_POST back variables

  1. #1
    Join Date
    Jun 2008

    Autoredirect and $_POST back variables

    Hi Everyone

    I came across a bit of a problem

    I have a page that checks the submitted form. If there are any errors or illegal functions it should redirect back to the page a request came from. As well as redirect it should send an error message. Now I need it to go so that the data sent back does not appear in the browser search line.

    The only way I found of doing it is to set a session variable.

    I also found this:

    header("Location: $nexturl");

    But this way one can see what is being posted back in the top of the browse, which is exactly what I am trying to avoid.

    does anyone have any ideas?

  2. #2
    Join Date
    Dec 2006
    Try validating the form on the origional page, post to itself, that way you can validate and check for any errors and output an error message, the if it validates correctly redirect to the next page.

  3. #3
    Join Date
    Jun 2008
    Thanks for advice, I rewrote the thing

    It absolutely flew out of my head earlier on

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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