You will learn how to make a simple contact form in HTML and using PHP mail function. Make sure that your hosting supports PHP. You need to create one HTML page and one PHP page. Open up your HTML editor.
First, create a blank HTML page and put below HTML codes inside the body tag. Save the file as “contact_form.html” including double quotes.
Second, create new file and put below PHP codes. You need to change the email address at $receiver = “email@yourdomain.com”; which will be used to receive emails coming in from contact form. Then, save it as “send_email.php” page.

4 responses so far ↓
1 telmo // Feb 3, 2008 at 4:12 am
it´s not working
2 Alex Gromkov // May 17, 2008 at 12:02 am
Thanks!!!!
3 Gunars // Aug 27, 2008 at 6:59 pm
Hello, please, I need a contact form, but I need it with a function to attach the file (image) - Thanks!
4 Gunars // Aug 28, 2008 at 2:06 pm
Flashmo - I found this one, but my knowledges is too short to create it by my self, At first I was thinking that in flash it is not poosible, but now it seems that it is –>
http://www.mikechambers.com/blog/2008/08/20/reading-and-writing-local-files-in-flash-player-10/
Leave a Comment