how to create a contact form in your blog

Dec. 4th 09:49 PM 2014
CONTACT FORM I know some of us don’t really know the full meaning of HTML LANGUAGE well I will start by telling you the meaning of HTML LANGUAGE what is the full meaning of “HTML”? HTML mean “Hypertext Markup Language”.. Now that we all know the full meaning of “HTML” Why call HTML? HERE IS WHY What does HTML mean? HTML is an acronym, abbreviation or slang word that is explained above where the HTML definition is given. Now since we all kw why it call HTML so lets move on to the writing of our first HTML FILE here in this file i am going to show you how to create or code a simple FORM using HTML mind you the latest version of HTML is HTML5 and its the latest standard for HTML. let stop there.. now let move to the main point here.. STEP 1 √••Open your notepad STEP 2 √•• Copy and past all the codes below in notepad contact form < form action=“formmail.php” method=“POST” enctype=“multipart/form-data”> < input type=“hidden” name=“action” value=“submit”/> Your name:< br /> < input name=“name” type=“text” value=“” size=“30″/> < br /> Your email:< br /> < input name=“email” type=“text” value=“” size=“30″/> < br /> Your message:< br /> < textarea name=“message” rows=“7″ cols=“30″> < /textarea> < br /> < input type=“submit” value=“Send email”/> < /form> Save the with contact.html STEP 1 also copy and past the code in your notepad STEP 2 save with “FORM.PHP” Email Form $name=addslashes($_POST[' name' ]); $email=addslashes($_POST[' email' ]); $comments=addslashes($_POST[' message' ]); // you can specify which email you want your contact form to be emailed to here $toemail = “type in your email here”; $subject = “from naijacrip.com”; $headers = “MIME-Version: 1.0n” .”From: “”.$name.”” < ”.$email.”> n” .”Content-type: text/html; charset=iso-8859-1n”; $body = “Name: “.$name.” n” .”Email: “.$email.” n” .”Comments: n” .$comments; if (!ereg(“^ [a-zA-Z0-9_]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$”, $email)) { echo “That is not a valid email address. Please return to the” .” previous page and try again.”; exit; } mail($toemail, $subject, $body, $headers); echo “Thanks for submitting your comments”; ?> Now save You can download the already made script here in zip below contact form scripts please if you have any complain or request consigning this script please comment