PAGE NOT LOADING!?
Posted: Wed Dec 03, 2008 8:09 am
I have a password change page that uses a php file that updates password on an mySQL database.
however when submit is hit i see the current page go blank and it does not redirect to the "password success" page. The password HAS indeed been updated - however there seems to be an issue with my header function that sends the user to the notification page. I have other sections in this website that use the EXACT same coding and it works without flaw!....eg. other member password update pages.
I am using IE - what on earth is going on??
however when submit is hit i see the current page go blank and it does not redirect to the "password success" page. The password HAS indeed been updated - however there seems to be an issue with my header function that sends the user to the notification page. I have other sections in this website that use the EXACT same coding and it works without flaw!....eg. other member password update pages.
I am using IE - what on earth is going on??
Code: Select all
<?
$user="Proadmin";
$host="localhost";
$password="mypassword";
$database = "mydatabase";
$connection = mysql_connect($host,$user,$password)
or die ("couldn't connect to server");
$db = mysql_select_db($database,$connection)
or die ("Couldn't select database");
$db = mysql_select_db($database,$connection)
or die ("Couldn't select database");
$clientN= $_POST['clnt'];
$user = $_POST['puser2'];
$password = $_POST['ppassword2'];
$query = "UPDATE vendors SET pass = '$password', user = '$user' WHERE vendor_number='$clientN'";
if(mysql_query($query)){
header("Location: http://provicanhealth.com/vendor_pass_successEX.php");
exit;
}
else{
header("Location: http://provicanhealth.com/vendor_passchange_errorEX.php");
exit;
}
?>