Basically I need to put an if statement inside an else if statement.. with an else to something different if the else if statement is incorrect.
It might sound kinda complicated, but in the time that I've been developing php scripts, this has never been an issue. Help, please?
if($_POST['newpass']=="")
{
echo "";
}
else if($_POST['newpass']==$_POST['newpass2'])
{
/* Check if the response is true or false and give an output for each one */
else if($response === false)
{
echo "<center>Email password is invalid!</center>";
}
else
{
echo "<center>New password submitted.</center>";
$xmlapi->api1_query($email.'@'.$emaildomain, "Email", "passwdpop", array($email, $newpass, 0, $cpaneldomain));
/* Then if the post variable newpass doesn't equal newpass2 display this. */
}
else
{
echo "<center>The two new password fields must be the same.</center>";
}


Sign In
Create Account


Back to top









