exit() and die() are synonyms.No, but it's still bad practice. Use HTML 4.01 Strict.umm, sorry mate, like I said, im a website n00b. This 'may' be the problem why the email won't send?
exit() and die() are synonyms.No, but it's still bad practice. Use HTML 4.01 Strict.umm, sorry mate, like I said, im a website n00b. This 'may' be the problem why the email won't send?
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
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.
- Mike
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...
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
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!!
Bookmarks