php form not working

Odd - I have a form on this page: http://delgadostone.com/index2.html which was once working. If you scroll to the bottom and fill out the form, it performs the general error control and even submits (with the message that it was sent), but I’m not receiving anything.

I can’t tell if there’s a JS conflict or not - I viewed the Web Developer portion and it came back with some errors (only css), but none related to JS or PHP.

Can someone take a look and tell me where my brainfart is?

Thanks!

the form submits ok

it does not show the error messages received in json from contact_me.php

it does show the successful message received in json from contact_me.php

[hr]

if you have problems with no emails beeing sent we at least need the php code that is responsible for that

if you have problems with showing the error message(s) then we need the js code that is responsible for handling that

Yep, like JimL said, no code, we can’t help…

But, many times I have found that if you are using mail code from a sample, you may be suppressing
the errors. Never use @mail() Remove the @ if you have it in your code and it should show the true
errors that are suppressed.

Also, verify that your email address it mails to is correct and lastly, check your mail headers. They will
not send mail if formatted incorrectly…

Good luck…

I’d expand that to “never use mail()”. Afaik it doesn’t have any error handling at all, it just returns true/false. It’s much better to use something like phpmailer, that actually throws errors if something is wrong.

JimL,

Yes, but, I get the feeling he is not experienced and is most likely using mail(). If he responds with some
code we will know.

I have seen many people who use mailing libraries and many that use just mail(). Mail() functions do some
error messaging and you can pull it from the server’s mail error list. Mail() does work great for simple sites
and if problems occur, you can pull the server’s mail’s error log with ease in code and display it. So, yes, there
is a way to get those errors, but, yes a good mailing library is better and probably easier.

Hmmm, I guess that means I agree. But, again, depends on his code…

Sponsor our Newsletter | Privacy Policy | Terms of Service