Jump to content


Photo

Question about headers


  • Please log in to reply
1 reply to this topic

#1 nphls

nphls
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 06 May 2006 - 10:53 PM

I'd like to know if you could give me a help in headers. I don't know how to use them.

My code is like this:

//PASSWORD VERIFICATION
if (($pass)!=($pass2)) //if the values stored in the 2 variables are
//different we redirect the users to a previously created error page
{
    header("Location: error-pwverify.php"); //the user will be sent to this page
    Die();
}

I wanted to display like an error message when the passwrods aren't the same.
I hope you guys fan help me out of this.

Thanks

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 07 May 2006 - 03:04 PM

Change your code to the following:
//PASSWORD VERIFICATION
if (($pass)!=($pass2))
{
    header("Redirect: 5; URL=error-pwverify.php"); //the user will be sent to this page after 5 secounds
    die("The password you specified does not match the password set. Please try again.<br /><br />This page will be redirected in 5 secounds");
}





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users