Want to Learn Digital Marketing tips, trends, and strategy Follow Our Blog and Youtube Channel

How To send HTML Form Data to Email using PHP

Hello Friends once again welcome to digital magnate blog. in this Blog we learn How To send HTML Form Data to Email using PHP.
kš—¶š—»š—±š—¹š˜† š˜€š˜‚š—Æš˜€š—°š—暝—¶š—Æš—² š˜š—¼ š—¼š˜‚š—æ š—°š—µš—®š—»š—»š—²š—¹ š—³š—¼š—æ š—ŗš—¼š—暝—² š˜ƒš—¶š—±š—²š—¼š˜€ Click here ➜ https://www.youtube.com/c/Digitalmagnate
so lets started..


I made this new tutorial video. to send  HTML Form Data  to Email using PHP phpmail function. here is an example of how to do it. 



The HTML form

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Contact Form Digital Magnate</title> </head> <body> <form action="mail.php" method="post"> <label for="name">Your Name</label><br> <input type="text" name="name" placeholder="Your name.."><br> <label for="lname">Email</label><br> <input type="email" name="email" placeholder="Your email.."><br> <label for="message">Message</label><br> <textarea name="message" placeholder="Write something.." ></textarea><br> <input type="submit" value="Submit"> </form> </body> </html>


mail.php

<?php //get data from form $name = $_POST['name']; $email= $_POST['email']; $message= $_POST['message']; $to = "gosocialmakedigital@gmail.com"; $subject = "Mail From website"; $txt ="Name = ". $name . "\r\n Email = " . $email . "\r\n Message =" . $message; $headers = "From: noreply@yoursite.com"; if($email!=NULL){ mail($to,$subject,$txt,$headers); } //redirect header("Location:thankyou.html"); ?>

thankyou.html

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> </head> <body> <h1>Mail Sent Successfully </h1> </body> </html>


For more details and to know how to implement this Check out our video.

Download Source Code : 


You Are Free To Ask The Questions By Commenting. kš—¶š—»š—±š—¹š˜† š˜€š˜‚š—Æš˜€š—°š—暝—¶š—Æš—² š˜š—¼ š—¼š˜‚š—æ š—°š—µš—®š—»š—»š—²š—¹ š—³š—¼š—æ š—ŗš—¼š—暝—² š˜ƒš—¶š—±š—²š—¼š˜€ Click here ➜ https://www.youtube.com/c/Digitalmagnate š—Ŗš—®š˜š—°š—µ š—¼š˜‚š—æ š—¼š˜š—µš—²š—æ š˜ƒš—¶š—±š—²š—¼š˜€ ➜ https://www.youtube.com/c/Digitalmagnate/videos


follow us on Social Media. Thanks for Here... Facebook:- https://www.facebook.com/Magnatedigital Blog:- https://digitalmagnate.blogspot.com/ Instagram:- https://www.instagram.com/digimagnate/ youtube:-https://www.youtube.com/c/Digitalmagnate/videos?sub_confirmation=1 š—žš—¶š—»š—±š—¹š˜† š˜€š˜‚š—Æš˜€š—°š—暝—¶š—Æš—² š˜š—¼ š—¼š˜‚š—æ š—°š—µš—®š—»š—»š—²š—¹ š—³š—¼š—æ š—ŗš—¼š—暝—² š˜ƒš—¶š—±š—²š—¼š˜€ Click here ➜https://www.youtube.com/c/Digitalmagnate/videos?sub_confirmation=1 More Video link:- How to install fb chat in website:- https://youtu.be/BV0NxcIsA5g How to delete YouTube search history:- https://youtu.be/u-5dppiUeRI How To Set Auto on-off function in android :-https://youtu.be/AbepiglSCbM How to solve timeout error in google chrome:- https://youtu.be/MSHCSFxMw4Q Social media link in google:- https://youtu.be/yrkxLuwerEE š—Ŗš—®š˜š—°š—µ š—¼š˜‚š—æ š—¼š˜š—µš—²š—æ š˜ƒš—¶š—±š—²š—¼š˜€ ➜https://www.youtube.com/c/Digitalmagnate/videos?sub_confirmation=1 Want your own website? E-mail us your requirements to gosocialmakedigital@gmail.com

2 Comments

  1. Marketing Via Digital Provides the best Digital Marketing Course In Delhi, This course will help you understand how to use different digital channels for promoting the products or services of a business. You will also learn about how you can analyze your website and ROI for tracking the success of your campaigns. For Any Further Query Call Us On 9818619898

    ReplyDelete