direct to another page

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

    direct to another page

    After submitting a form, I would like to redirect to another page. In ASP
    you can do : response.redire ct "filename.a sp", but what about PHP?


  • Ian.H [dS]

    #2
    Re: direct to another page

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Whilst lounging around on Sat, 09 Aug 2003 13:22:40 GMT, "Kai"
    <kairoen@msn.co m> amazingly managed to produce the following with
    their Etch-A-Sketch:
    [color=blue]
    > After submitting a form, I would like to redirect to another page.
    > In ASP you can do : response.redire ct "filename.a sp", but what
    > about PHP?
    >[/color]


    RTFM!



    Regards,

    Ian

    -----BEGIN PGP SIGNATURE-----
    Version: PGP 8.0

    iQA/AwUBPzUFimfqtj2 51CDhEQK/kwCfSRPRIpoEP9w +B0VElpgycco0Ls QAn3hA
    XukGc+m+vAIhLXx dA+uOzI6r
    =pw42
    -----END PGP SIGNATURE-----

    --
    Ian.H [Design & Development]
    digiServ Network - Web solutions
    www.digiserv.net | irc.digiserv.ne t | forum.digiserv. net
    Programming, Web design, development & hosting.

    Comment

    • Patrick Lioi

      #3
      Re: direct to another page

      "Kai" <kairoen@msn.co m> wrote in message news:<AA6Za.561 1$BD3.2472853@j uliett.dax.net> ...[color=blue]
      > After submitting a form, I would like to redirect to another page. In ASP
      > you can do : response.redire ct "filename.a sp", but what about PHP?[/color]

      Call header() like so before *any* output:

      header("Locatio n: filename.php");

      And then exit().

      response.redire ct probably works by doing this for you.

      Comment

      Working...