#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    43
    Rep Power
    15
    is there a command that can redirect the user to another page..... hence in using cookies:

    1> page to get login information, submit form, action is verify.php3

    2> verify.php3 verifies their information, sets the cookie, and **REDIRECTS the user automatically to the index.php3 page**.

    3> index.php3 loads, able to get the cookie value.

    I don't want the user to really see verify.php3, more or less look seamless from the first page to index.php3.


    Any help appreciated,

    Mike
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    1
    Rep Power
    0
    Hi
    Mr. Mike

    If u want to redirect from one php page to another php page u can use Header function
    which will take the url as the paramater.
    But this function must be called before any out put is sent to the browser.

    Thanks.
    Vinod
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Location
    London
    Posts
    110
    Rep Power
    0
    you may problems doing things before you set the cookie as this can freak it out (even white space), probably best to verify, collect the variable(s) for your cookie, use meta refresh set at zero and then set the cookie using those values once you get to index.

    eg

    echo "<meta http-equiv="refresh" content="0;url=index.php3?Val=$Val&Val2=$Val2">";

    or something along those lines....

    ------------------
    cheers
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Location
    Helden,Limburg,The Netherlands
    Posts
    33
    Rep Power
    15
    Hi Mike,

    Your file verify.php3 can do the verification before setting the header as long as it does not send any information to the browser.

    Then depending on the verification result the header information can be set.In this header you send the login info. In index.php3 you can then set a cookie, if necessary, and use the variables set by the header to continue.

    Greetz,
    Ramon



    ------------------
    Ramon Litjens
    Boradoli Web Design
    (www.boradoli.nl)

Similar Threads

  1. Get info from MySQL into php page?
    By Dr_DK in forum PHP Development
    Replies: 2
    Last Post: February 5th, 2004, 07:22 PM
  2. sending percent signs to another page
    By aliaga61 in forum ASP Programming
    Replies: 1
    Last Post: February 5th, 2004, 08:38 AM
  3. Help using a database and php to update a scores page.
    By deathsythe in forum PHP Development
    Replies: 0
    Last Post: February 2nd, 2004, 02:48 PM
  4. Replies: 4
    Last Post: January 28th, 2004, 08:29 AM
  5. pass value from one php page to another php page
    By fluke_tony in forum PHP Development
    Replies: 4
    Last Post: January 27th, 2004, 09:55 PM

IMN logo majestic logo threadwatch logo seochat tools logo