Quote:
Originally Posted by Old Pedant
It's possible, but a lot of changes.
You'd have to use AJAX to request that the PHP code send the email and then get a response back from the PHP code that tells the main page what to do. Your existing PHP mailer page would need several changes, of course.
As a not so minor point, none of it would then work if the user has JavaScript disabled, so are you sure that doing this is a good idea?
|
Thanks for the response. Well, what'd you recommend me to keep it simple and working without Javascript, but at least implement the error stuff? I find it tedious to have to go back and make the changes.
Maybe something like just enabling the send button if the information is correct, and marking red the inputs that are wrong? If Javascript is disabled, then I suppose the button will always be clickable and nothing will change to red, but that can be resolved by a line saying all info is required.