How to make your contact PHP form work

While building a new website for my customer and implementing a PHP contact form with PHPMailer,  it seemed that the contact form made in HTML5 didn’t work.

The cause of this was that the old website was placed on a Windows server and had to be moved to a Unix Server that supports PHP files. So the website was placed in a test area, everything worked and after one week the provider moved the website to the new Unix server.


After testing the php contact form at the test server of my customer’s IP server it seemed the contact.html page and the mail script suddenly  has been changed and email was received but without email of the sender and no content in the message box…after the testing period and being moved to the new Unix server a “2” was placed behind the id’s, so: “name2” and “email2” etc.


I removed the “2” behind all the ID’s and the contact form was working again…after searching a lot of forums why it wasn’t working anymore after the migration to the Unix server..

<form method=”post” action=”mailer.php”>

Naam<br />

<input type=”text” name=”name” size=”40″ value=”” />

<br />

Email<br />

<input type=”text” name=”email” id=”email2″ size=”40″ value=”” />

<br />

Uw bericht<br />

<textarea cols=”40″ rows=”15″ name=”message”></textarea>

<br />

<input type=”submit” value=”Stuur Email” name=”submit_btn” id=”submit_btn” />


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.