Form Validation Not Working :(
View Single Post
05-13-2009, 05:11 PM
Join Date: Feb 2009
Location: New York
Originally Posted by
Hey! The good news is it works - YEY!!!! I could kiss you all over :)
I think that some of the errors must simply be related to testing locally.. is this likely?
I will add some more validation and refine my form now lmao... never ending. I owe you a biggie. And WildHoney for starting me off on the right path... thanks guys. I hope I can become a useful member here one day too :D
Good job! I don't think it was any issue with local testing because I ran into the same issues you did until I made some changes to prevent execution of the PHP code before the HTML....
Also, if I could make a suggestion, look into using $_SESSION variables instead of $_POST variables. Once you get your form working, I would tinker around with it using sessions.
Because this way, if the user makes a mistake, the session will hold the original data that the user typed in so they don't have to start all over from scratch....
Then after the mail function, you can destroy all the sessions....
View Public Profile
Send a private message to allworknoplay
Find More Posts by allworknoplay