Jump to content

PHP DIE Function


chris_davidsonuk

Recommended Posts

I am using login script I found at http://www.free2code.net/plugins/articles/read.php?id=99. It uses 'DIE' to stop the script when a username or password is incorrect.

The problem I am having is that I have my menu at the bottom of the page which I include into the page. But if the user dosn't enter the correct username and password the script is terminated so the menu doesn't show.

[code]
if(!$_POST['uname'] | !$_POST['passwd']) {

die('You did not fill in a required field.<br>');

}
[/code]

Is there anyway to include my footer file (footer.php) even if the script has 'DIED' ?
Link to comment
https://forums.phpfreaks.com/topic/18709-php-die-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.