Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End My contact form doesnt work Re: My contact form doesnt work

#55897
ikthius
Member

doing a basic test can help see where it is dying, like at each stage, write something out to the page:
e.g. if your php filled the body of the mail, echo it out, perform something for each stage to see when it dies…
echo = "body populated";

"wingye" wrote:
thnx for you time, well its the whole thing that doesnt work.
It doesnt send any mail out and it keep redirecting to the error page not matter what.

wing

are you on a windows server?
if so you need to set your ini in php

plus enquiry & message are not the same!!! you might want to change one.

mind you it looks like the script I use, but I $_REQUEST my HTML elements

e.g.

Code:
$name = $_REQUEST[‘name’];
$tel = $_REQUEST[‘tel’];
$email = $_REQUEST[’email’];

also this is my success:
$success = mail($EmailTo, $Subject, $Body, "From: <$email>", "[email protected]");

hopefully these small hints may help get it working