Hopefully a simple php problem ( exit() function)
Posted: Sat Jun 18, 2005 10:49 pm
Hello,
I'm making a login system in php.
In my registration form, after i press submit button, i do some checks for valid email adres, password safety, etc..
Now if for example the users email adres is not valid, i execute this:
die('Invalid e-mail address.');
This php code is located in a html. The problem is that all the html code after the DIE function does not display... So the table looks completely messed up.
Is there a way to jump out of php code, but still render the remaining html below the code?
Thank you.
I'm making a login system in php.
In my registration form, after i press submit button, i do some checks for valid email adres, password safety, etc..
Now if for example the users email adres is not valid, i execute this:
die('Invalid e-mail address.');
This php code is located in a html. The problem is that all the html code after the DIE function does not display... So the table looks completely messed up.
Is there a way to jump out of php code, but still render the remaining html below the code?
Thank you.