58: How to Create A PHP Contact Form | PHP Tutorial | Learn PHP Programming | HTML Contact Form



How to create a PHP contact form | PHP tutorial | Learn PHP programming | HTML contact form. In this PHP tutorial video you will learn how to create a PHP contact form, which you can use on your website to let people to send you e-mails.

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful 🙂

Material for this lesson:

Nguồn: https://federicobellucci.net/

Xem thêm bài viết khác: https://federicobellucci.net/cong-nghe/


Article Categories:
Công Nghệ

Comments

  • Thank you! It worked 🙂

    Barbara Walsh July 18, 2020 6:26 am Reply
  • so could I host this on heroku and would it work?

    KyleDTv July 18, 2020 6:26 am Reply
  • My mistake was not capatilizing the POST inputs haha Thank you so much buddy. Its working!!

    Warrith shabazz July 18, 2020 6:26 am Reply
  • Bro teach me how to send mail to GMAIL please

    Abelardo Chiong July 18, 2020 6:26 am Reply
  • This worked Perfectly. Thank you!

    ruben esquivel July 18, 2020 6:26 am Reply
  • Isn't that what "Mercury" is for on XAMPP to get the mail working?

    MikeOnTheBox July 18, 2020 6:26 am Reply
  • Was trying to do this last. Would not work. Not at all. Went to bed miserable. Woke up this morning refreshed with coffee and tried again… Still wouldn't work. After swearing loudly for a few minutes I notice something. One quotation mark missing!!! AAARGH This is why I'll never make a professional programmer 😛 It works perfectly now. Thanks for this tutorial

    Rob Candy July 18, 2020 6:26 am Reply
  • what if you have an index.html

    francis jonathan Lloyd July 18, 2020 6:26 am Reply
  • <?php

    if(inset($_POST['submit'])) {

    $name = $_POST['name'];

    $subject = $_POST['subject'];

    $malefrom = $_POST['male'];

    $message = $_POST['message'];

    $mailto = "mymail@gmail.com";

    $headers = "From: ".$mailform;

    $txt = "you have recived an email from ".$name.".nn".$message;

    mail($mailto,$subject,$txt,$headers);

    header("location:index.php?mailsend");

    }

    Dragon Warrior July 18, 2020 6:26 am Reply
  • Someone to help me with the working PHP email form in form of codes please

    Mwaka Emmanuel July 18, 2020 6:26 am Reply
  • This thing is so good! it works! Gmail doesn't work, but you can use outlook! It works! Go try it!

    Minecraft Hardcore July 18, 2020 6:26 am Reply
  • if it doesn't send to email, does it send to outlook? or name a place it can send to please.

    Minecraft Hardcore July 18, 2020 6:26 am Reply
  • Hi, I can send my form but after it doesnt go the page I assigned, it goes to a blank page which is php page

    Cansu Onomay July 18, 2020 6:26 am Reply
  • I followed the tutorial exactly, but I used filezilla. The website works but the php doesn't… I have to use filezilla, but does anyone know why it might not be working?

    Kyuubi July 18, 2020 6:26 am Reply
  • Hi, I would be grateful if you could make a tutorial on a functional shopping cart

    Muhammad Maaiz July 18, 2020 6:26 am Reply
  • Hello! I just have a quick question; is this working only when my website has a domain name or I can view the changes having it as a local file on my computer? I am working on a site for a school project and creating a domain is not compulsory (but, after watching your video, I think that for the form to work that it is compulsory to create a domain name).

    Marcyan July 18, 2020 6:26 am Reply
  • Im used this code for my contact form. Instead to send eamil when I click button browser download php file… Can you give me a hint?

    Miodrag Petkovic July 18, 2020 6:26 am Reply
  • For the life of me cannot get this to work within my hosting acc. Im wondering if its something ive missed and to do with the end and Location index.php. because i do not have an index.php file in this location? Anyone appreciate help because this is reallly holding up my life. 😉

    Vernomad July 18, 2020 6:26 am Reply
  • Nice, from a fellow one.com user

    Liam Atkinson July 18, 2020 6:26 am Reply
  • I didn't receive the email, I'm using hostgator.

    TechWizPC July 18, 2020 6:26 am Reply
  • I will see php form data insert video, but I have some problems of form data validation. Can you please help me?

    Vantex July 18, 2020 6:26 am Reply
  • Hi, I was wondering can I use "index.html" instead of "index.php". I have already made my JS, HTML and CSS to my website and changing the .html to .php won't show nothing else than "html not found". Is it functional with HTML and is it different somehow?

    Max Mattila July 18, 2020 6:26 am Reply
  • You are the one youtuber I was looking for.

    Ilham Urukrod July 18, 2020 6:26 am Reply
  • Check this full featured contact form with PHPMailer and reCaptcha
    https://codecanyon.net/item/ajax-contact-form-mobile-first/25185499

    Lucas Games July 18, 2020 6:26 am Reply
  • I tried your tutorial after trying many others. I have the same issue with them all. Can anyone advise me? My form just sends me to the "action" location, I don't think it's actually running the php script…

    TurpoChargedGaming July 18, 2020 6:26 am Reply
  • Er du Norsk? såg du skrev en "Æ" XD

    NoCraft Games July 18, 2020 6:26 am Reply
  • How can i add i message to let the subscriber know the message has been sent.

    DEEJAY BOZIAH July 18, 2020 6:26 am Reply
  • thanks, but i do not think this code works well, coz you did not link the html and php file
    secondly, you should have finished ?> like this your last php line

    The best July 18, 2020 6:26 am Reply
  • Thank you for this! Very informative and instruction is clear!

    Mike B July 18, 2020 6:26 am Reply
  • hi how make inbox email im my web sit infinty free

    المهندس عبدالعزيز عدنان عزالدين July 18, 2020 6:26 am Reply
  • nice tutorials! www.headstartcms.com

    Karl Ababat July 18, 2020 6:26 am Reply
  • please, answer, does it work with github?

    Inacio CM July 18, 2020 6:26 am Reply
  • not working

    Lucian Rusu July 18, 2020 6:26 am Reply
  • I'm confused. How does this authenticate with the gmail? Are you signed in already on this computer?

    TallBoy July 18, 2020 6:26 am Reply
  • Hey there, I was wondering if I need to worry about people putting malicious code through this? I don't have any database but I want it to be safe.

    Abellex July 18, 2020 6:26 am Reply
  • Where did you get the location from in the
    "header("Location: index.php?mailsend";)"
    section? Do we have to have an index.php for it to work? It seems that that part is causing problems in my code

    chenx88 July 18, 2020 6:26 am Reply
  • Hi, for the $txt I'd like to add a 2nd line with that says this person wishes to be added to the newsletter $news and some space at the end of the you have received an email from $name as it is very close together and not very readable how would that be accomplished?

    icreatestuff July 18, 2020 6:26 am Reply
  • If anyone having problem with the code. Contact me on lawcorners@gmail.com

    Banking Zone July 18, 2020 6:26 am Reply
  • complete php form https://www.youtube.com/watch?v=JfgWBV1Td1Q&t=44s

    Code With F.S.H July 18, 2020 6:26 am Reply

Leave a Comment

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