Simple contact us page in PHP

This is a simple contact us page. This script sends an email to a specified user using php. We will be using in-built php function mail().
So first, we start it off by creating a HTML form to accept the sender/receiver details from the user along with the email subject and email body.

Now we process the user-input in the contact.php.

The above syntax is the basic syntax. These are the three parameters which need to be passed mandatorily.


The following two tabs change content below.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">