SirChick Posted August 28, 2007 Share Posted August 28, 2007 Is there a way to change die to either a pop up error so that when the user clicks ok it'll close the pop up and then they can correct what needs to be done. I have this done for validation stuff using javascript but not for when there is a php or mysql issue involved as i was unsure it could be done? Or is there a way to change die to a location method without loosing the player's inputted data when they go back to the page to correct their mistake? Reason why is i'm trying to eliminate the die's where by it goes to a new page just to display "your password incorrect", its mainly to keep it a bit more professional looking.. which is the best way in your opinion ? Quote Link to comment https://forums.phpfreaks.com/topic/67027-die-messages/ Share on other sites More sharing options...
MadTechie Posted August 28, 2007 Share Posted August 28, 2007 don't use die then..! use exit! you shouldn't need to change die, just build the function to work the way you want maybe even use a header or echo a javascript redirect Quote Link to comment https://forums.phpfreaks.com/topic/67027-die-messages/#findComment-336141 Share on other sites More sharing options...
SirChick Posted August 28, 2007 Author Share Posted August 28, 2007 well i used die whilst debugging etc then i change it but wasn't sure which is a good method to change it to.. the pop up message is probably the best idea so ill give that a try with javascript. Quote Link to comment https://forums.phpfreaks.com/topic/67027-die-messages/#findComment-336146 Share on other sites More sharing options...
trq Posted August 28, 2007 Share Posted August 28, 2007 don't use die then..! use exit! die() is an alias of exit(). They are the same function. Quote Link to comment https://forums.phpfreaks.com/topic/67027-die-messages/#findComment-336187 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.