SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: PHP redirect

  1. #1
    SitePoint Zealot
    Join Date
    Jun 2001
    Location
    Ohio
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP redirect

    I'm working on an e-mail form script and at the end want to redirec the user to a thank you page. How would I do this?
    http://www.sianews.com: an independent, politically conservative news site

  2. #2
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    At the end of your script, add the statement
    header("Location: ./xxx pathhere/thankyou.php");


    It will redirect to thankyou.php and runs it.
    John


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
  •