exit() and die() are synonyms.No, but it's still bad practice. Use HTML 4.01 Strict.Quote:
umm, sorry mate, like I said, im a website n00b. This 'may' be the problem why the email won't send?
Printable View
exit() and die() are synonyms.No, but it's still bad practice. Use HTML 4.01 Strict.Quote:
umm, sorry mate, like I said, im a website n00b. This 'may' be the problem why the email won't send?
but why would i want to exit the script after validation is complete?
doesnt that mean that the email wont compile and send after this point?
even if i remove the exit() after validationOK, the email wont send.
After entering details in this webpage, it looks like it all working but i dont think anything is happening in the background.
Cheers
die and ext also end all php scripts as well, so if you had any other php scripts on that page, they would all get removed after the point of execution.
arh okay, thanks mburt.
Still can't figure out why i wont recieve an email tho... the address is correct and ive tried a hotmail address aswell but with no success.
maybe i should create a simple script that just sends a blank email from the page to see if that works, and if that works, its something to do with the email compilation...
thankyou for everyones help.
I now managed to successfully lodge forms by removing the die() or exit() code halfway through the php. It was quitting the form too early before it could get the data from the fields and email them!
Cheers again!!