#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    4
    Rep Power
    0
    What is PHP's method of redirecting i.e. on the page which processes a login form i want to redirect depending on which passwords were put in and whether the passwords are correct.

    ------------------
    Cheers,

    Nick
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Norcross, GA
    Posts
    458
    Rep Power
    14
    [code]

    if ($var1 == "ok") {

    header ("location: <A HREF="http://www.this.com");" TARGET=_blank>www.this.com");</A>

    } else if ($var1 == "notok") {

    header ("location: <A HREF="http://www.that.com");" TARGET=_blank>www.that.com");</A>

    } else {

    header ("location: <A HREF="http://www.theother.com");" TARGET=_blank>www.theother.com");</A>

    }


    HTH,
    Mike
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    4
    Rep Power
    0
    thanks a lot

Similar Threads

  1. Replies: 1
    Last Post: April 27th, 2004, 04:40 PM
  2. in_array in php --perl equivalent
    By Viper_SB in forum Perl Programming
    Replies: 1
    Last Post: August 20th, 2003, 09:41 PM
  3. Perl equivalent to PHP's date()
    By Tsigo in forum Perl Programming
    Replies: 2
    Last Post: February 11th, 2003, 07:16 PM
  4. How can multiple characters be considered equivalent?
    By rhodesiascout in forum MySQL Help
    Replies: 2
    Last Post: September 17th, 2001, 03:12 AM
  5. ASP equivalent of PHP's addslashes()?
    By billyo in forum PHP Development
    Replies: 2
    Last Post: October 4th, 2000, 10:32 PM

IMN logo majestic logo threadwatch logo seochat tools logo