On Die command
Posted: Sat May 29, 2004 9:20 am
Can you set a variable on Die ? I was trying to do this
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?
Code: Select all
<?php
if ("$Password_f" != "$Password_f2")
die ($Message = 'Sorry the passwords do not match, please try again');
?>