PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
if ("$Password_f" != "$Password_f2")
die ($Message = 'Sorry the passwords do not match, please try again');
?>
and the later on i send the $Message to another page. But if you die the program stops so it wont excute the header later on to send it? Is there a way around this?
<?php
if ("$Password_f" != "$Password_f2")
$Message = 'Sorry the passwords do not match, please try again';
else {
// Do
// stuff
}
// You might have other check routines...
header("Location: /anotherPage.php?Message=$Message");
die();
?>