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 ASP.net 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”>
<input type=”text” name=”name” size=”40″ value=”” />
<input type=”text” name=”email” id=”email2″ size=”40″ value=”” />
Uw bericht<br />
<textarea cols=”40″ rows=”15″ name=”message”></textarea>
<input type=”submit” value=”Stuur Email” name=”submit_btn” id=”submit_btn” />