Imtehbegginer Posted April 27, 2008 Share Posted April 27, 2008 Hey, I dont have a sample of code handy... but. Say im designing a register page, and if the passwords dont match, ill use die('Passwords are wrong'); but that means the error shows up, but what is supposed to be below it is gone.. Instead of using the die() command, how can i end the script without is cutting off half the page? Link to comment https://forums.phpfreaks.com/topic/103107-ending-php/ Share on other sites More sharing options...
trq Posted April 27, 2008 Share Posted April 27, 2008 You can't, if you end a script you end the script. Make sense? If you want the script to display a message but carry on simply use echo. Link to comment https://forums.phpfreaks.com/topic/103107-ending-php/#findComment-528161 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.