Make PHP Contact Form for Website

Learn to brand PHP contact cast for your websites

It is rattling elementary to construct php contact cast for your website. You bring to alone follow to a greater extent than or less codes too files. There volition live on 2 signal y'all bring to shout out back earlier making php form.
1. Form Variables
2. Form targetting (Action)
Learn

Learn to brand PHP contact form

First brand a answer page similar thanks.html if y'all are using static website or thanks.php if y'all are using dynamic website.

Make a php file using text document too refer it contactform.php (Make certain it should live on inwards php format non inwards text) too supersede alongside your e-mail ID too answer website link.
$email = $_POST['email'];
$message = $_POST['message'];
$formcontent="From: $name \n Message: $message";
$recipient = "email@gmail.com";
$subject = "Contact Form";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
 header( 'Location: http://www.yoursite.com/thanks.html' ) ;
?>  
Click on below link to re-create cast code too glue this code where y'all desire to show/visible on your website:
http://codepad.org/p57IkdKS

Final phase to consummate your PHP contact form.

Upload contactform.php file fornt of index.html of index.php .

Belum ada Komentar untuk "Make PHP Contact Form for Website"

Posting Komentar

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel