Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- step one:
- /* input this code in index.php */
- <!doctype html>
- <html>
- <head>
- <title>This is title</title>
- </head>
- <body>
- <h2>Contact with us!</h2>
- <form name="form1" action="form_process.php" method="post" />
- Name: <input type="text" name="name" /></br>
- Email: <input type="text" name="email" /></br>
- Message:<textarea name="textarea"></textarea></br>
- <input type="submit" value="SUBMIT" name="submit" />
- </form>
- </body>
- </html>
- step two:
- create php file, file name: form_process
- /*input this code in form_process*/
- <?php
- $name=$_POST['name'];
- $email=$_POST['email'];
- $textarea=$_POST['textarea'];
- $to="admin@pchelpcenterbd.com";
- $message="Name: $name \n\n Email: $email \n\n Message: $textarea";
- if(mail($to,"Contact From by pchelpcenterbd.com site", $message, "FROM: $email")){
- echo "Thank you $name your messaage has been sent";
- }
- else{
- echo "Sorry, your messege hasnt been sent";
- }
- ?>
- Video Tutoria: https://www.youtube.com/watch?v=cXl930-36EQ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement