View Full Version : Contact form does not work ??

05-25-2010, 02:45 PM
Hi Masters

I've been trying to get a form working for several weeks and it's just not working. I've followed the helpvid you tube tutorial religiously but still no emails.

- My server does support php
- The form is at: http://www.kingarchitecten.nl/Bel_me_terug.html
- The php doc. is saved as contactformprocess.php
- The content of the php is:

I've also followed other tutorials and this does not work either.

My email is info@kingarchitecten.nl which is googla apps

In grateful anticipation

Roland King :(


/* Email Variables */
$emailSubject = 'contactformprocess!'; /*Make sure this matches the name of your file*/
$webMaster = 'info@kingarchitecten.nl';

/* Data Variables */
$email = $_POST['email'];
$name = $_POST['name'];
$comments = $_POST['comments'];

$body = <<<EOD
Name: $name <br>
Email: $email <br>
Comments: $comments <br>
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,

/* Results rendered as HTML */
$theResults = <<<EOD
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=http://www.kingarchitecten.nl/King_Architecten.html">
<style type="text/css">
body {
background-color: #444; /* You can edit this CSS to match your website*/
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #fec001;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
<div align="center">the message has been successfully sent</div>
echo "$theResults";

05-26-2010, 01:57 AM
i just tested your form and got the message sent message so are you simply not receiving them maybe? perhaps try a different email address

05-27-2010, 10:19 AM
Hi Roland and Ed,

I just checked this. I changed the email address to my own and received the email okay from my server, got the success page and was redirected to your website Roland.

Therefore, it must be your email address. Try as Edbr has said and use a different email address or check that your email address is working okay.

The only other thing could be that your hosting does not support PHP. You could check the issue with your hosting support.


05-27-2010, 04:37 PM
My frustrations, how come it works by you and not with me??

Well I tried my private email address on the php and this did not work either: $webMaster = 'wilking@xs4all.nl';

My info@ has been working for some time and I use it all the time so I can't understand why its not working. If I send mesages from info@... to wilking@... it works and the other way round, it works also.

I contacted my server helpdesk and they confirmed that it does support php.

thanks for your help


05-28-2010, 05:35 AM
ask them if the mail function is available

They may have this disabled