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

  Рет қаралды 598,422

Dani Krossing

Dani Krossing

Күн бұрын

Пікірлер: 865
@remsan03
@remsan03 5 ай бұрын
I've spent the entire day trying to make my contact page works. Only this guy helpfully mention that Gmail can't receive any mail sent directly from php. My head hurts checking every line of code, thinking there's something wrong. The solution actually was so simple: use an email from your domain for $mailTo. Thank you, and I'm subscribing.
@ThePublicTutorials
@ThePublicTutorials 7 жыл бұрын
Hey, I love how you actually get straight to the point and actually make videos with useful real life examples and not just speak theory or demonstrate cases that have no real life abutment! Your videos saved me from failing one of my uni courses. Thanks alot! If I were to be pointy about your tutorials I'd say that I wished you started off with showing the result (So that we can skip the video if it wasn't what we were looking for). But keep up the amazing content!
@mohanmariswamy1321
@mohanmariswamy1321 3 жыл бұрын
I was worried to not learning this since so many years as I was only concentrated on front end development. Thanks Dani :)
@83greene
@83greene 7 жыл бұрын
Thank you so much for this video! I am complete php newbie trying to create php contact form on my website. I watched so many tutorials and I couldn't get it worked. Why? I tried to send email to my gmail address. Thank you for explaining that it won't work with Gmail! That just saved me whole afternoon of frustration!
@abiodunfakunle4791
@abiodunfakunle4791 6 жыл бұрын
but pls how do u did that, co's i have tries it but is not working
@haoql.7686
@haoql.7686 2 жыл бұрын
I just like how easy and basic this video is to an absolute beginner of learning PHP. Thanks for making this video!
@suchiparekh5190
@suchiparekh5190 7 жыл бұрын
I have watched at least 10 videos before yours. you showing perfect all the thing. all the things you explained, I understand very easily and its working finally. thank you, soo much. you are god for me. your video made my day.
@chibututunnamani5806
@chibututunnamani5806 5 жыл бұрын
I'm in love with the way you teach bro! I read books but you've made me a more confident php developer. Much love bro! Thanks for the great work!
@mellmckn
@mellmckn 7 жыл бұрын
Love your course! I'm new to php and this is very helpfull.
@gunnerjeremiah892
@gunnerjeremiah892 3 жыл бұрын
you all probably dont give a shit but does someone know a way to log back into an instagram account? I stupidly forgot the login password. I would appreciate any tricks you can give me!
@HaanBerry
@HaanBerry 3 жыл бұрын
@@gunnerjeremiah892 use the forgot password button lol
@robcandy9273
@robcandy9273 4 жыл бұрын
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 :P It works perfectly now. Thanks for this tutorial
@DH-qu8wh
@DH-qu8wh 4 жыл бұрын
repeat this process several hundred times and you will be a professional.
@natking1u1z99
@natking1u1z99 2 жыл бұрын
I bet you code professionally now, do you?
@milijanaderic2271
@milijanaderic2271 3 жыл бұрын
Thank you Dani! Thanx to your video, I managed to make a contact form on my portfolio web site working!
@warrithshabazz8495
@warrithshabazz8495 4 жыл бұрын
My mistake was not capatilizing the POST inputs haha Thank you so much buddy. Its working!!
@alexanderkwasiamoah1104
@alexanderkwasiamoah1104 3 жыл бұрын
I actually got this one straight after many attempts using other videos. Thanks.
@drakZes
@drakZes 3 жыл бұрын
How did you get it right, please, I have tried everything
@billbyrd9845
@billbyrd9845 5 жыл бұрын
Absolutely the best tutorial for contact form on the entire web! Thank you!
@tommyp2135
@tommyp2135 6 жыл бұрын
I been looking for hours to my question "Can i test my PHP form using local host? " Thank you for giving the answer =)!
@Dani_Krossing
@Dani_Krossing 6 жыл бұрын
Yes but it require quite a bit of setup
@issarukayat5992
@issarukayat5992 6 жыл бұрын
You are an angel. Your method of impacting knowledge is awesome. I really appreciate all your tutorials. I have learnt alot from watching your video. I am new in programming. Thanks alot.
@iajoe9077
@iajoe9077 10 ай бұрын
The way you teach us is super good and open Sir ❤. Thank you so much
@CountingSheepsTonight
@CountingSheepsTonight 6 жыл бұрын
It's a really reallyyyyyy good tutorial! Well done! You can be sure that I will come back and watch each tutorial (you can say that I have come here for a refresh tutoring and you've passed it big time!)
@oldaccount-e4j
@oldaccount-e4j Жыл бұрын
Sometimes I feel that you teach way better than others
@DesmondloveSonita
@DesmondloveSonita 11 ай бұрын
I really love your manner of presentation and teaching sir
@mettalove
@mettalove 8 ай бұрын
Thank you so much for providing tutorials for beginners. I'm happy you explain every step and don't skip over things. Now, have you made a video that shows how to add V2 checkbox recaptcha into a php/html contact form. I have a functioning form but have no idea where to place all of the code. Watching your html and php form videos is teaching me about my form in the meanwhile.
@dougduran4591
@dougduran4591 6 жыл бұрын
Best programming channel ever! You make PHP fun and easy like never seen before
@verakorchemnaya3971
@verakorchemnaya3971 3 жыл бұрын
Very good, easy to follow video! The only video anyone needs on this subject, thank you!
@trg808
@trg808 5 жыл бұрын
Hey this works with my Gmail! Don't know if anything has changed but just wanted to give a heads up.
@hananebouidia6485
@hananebouidia6485 4 жыл бұрын
Hello can you please tell me how it wirked for you with gmail ?? because don't want to work for me !!
@aangaimbot1498
@aangaimbot1498 4 жыл бұрын
PLS TELL ME HOW THE HECK IT WORKED FOR YOU PLSPLSPLSPLSPLSSSSSSSSSS
@aangaimbot1498
@aangaimbot1498 4 жыл бұрын
@RUSAFI BUT HOW
@sivap8984
@sivap8984 5 жыл бұрын
By visiting your channel I am learning usefully day by day.
@SaravanaKumar-xw8xt
@SaravanaKumar-xw8xt 6 жыл бұрын
Thanks you very much. i suffered a lot past 2 weeks at last this tutorial give me a nice result .good keep going and am looking more tut videos ahead .
@dominicsanchez2633
@dominicsanchez2633 6 жыл бұрын
You have a potential to be a web development teacher, thank you very much Sir, great tutorial indeed! :)
@nlawson2004
@nlawson2004 5 жыл бұрын
Damn it. It was the Z index value in the CSS. Everything is perfect again. Hopefully these posts will help someone else who’s having similar issues. So madenning.
@stevoe6271
@stevoe6271 5 жыл бұрын
it would be cool to finish off this contact form video by implementing a recaptcha on this contact form :) PS i sent you an email about this :)
@nigelpallatt
@nigelpallatt 4 жыл бұрын
It cost money!
@OstonCodeCypher
@OstonCodeCypher 7 жыл бұрын
Awesome Dude. I am really feeling sorry for the views you are getting. You deserve million views and subscribers. Thanks for making this video.
@iurukrod9938
@iurukrod9938 4 жыл бұрын
You are the one youtuber I was looking for.
@chauvu5342
@chauvu5342 6 жыл бұрын
Awesome content! I kept thinking I needed to add jQuery to click the submit button. So much time saved! Thank you!
@samnatangweshingenge7370
@samnatangweshingenge7370 3 жыл бұрын
Struggling years and years ,Thank you Bro
@daniphordmwajah2840
@daniphordmwajah2840 5 жыл бұрын
I am one of your followers, and really benefiting from your courses. Keep up the good job!
@samuelxo2569
@samuelxo2569 4 жыл бұрын
This was the most useful tutorial ive seen for this thanks so much
@Nezubñueltomichi
@Nezubñueltomichi 4 жыл бұрын
awesome, just what I was looking for. Thanks a lot for sharing!
@wettermartin
@wettermartin 7 жыл бұрын
Man, you are a number one. I'm strugling with this almost whole week. Thanks a lot
@toxig1337
@toxig1337 4 жыл бұрын
Quality video. It's easy to listen to you explaining stuff and pleasure to look through your coding. I'm definitely coming back to check some more videos. Great job, keep it up
@beenyshsaeed4559
@beenyshsaeed4559 2 жыл бұрын
Thank you for explaining clearly and precisely.
@romain3612
@romain3612 5 жыл бұрын
Tnx sir, I tried many other tutorials , yours is easier and works instantly .
@barborabenova3668
@barborabenova3668 5 жыл бұрын
I followed the instructions and it worked. Thanks
@fataidea135
@fataidea135 5 жыл бұрын
Did you use xammp or you host it
@motivationhacks4795
@motivationhacks4795 4 жыл бұрын
This is exactly I looked for, thanks 😊❤️🙏
@التدريبالعلمي
@التدريبالعلمي 2 жыл бұрын
Fantastic tutorial bro. thank you so much
@dapesmaster
@dapesmaster 6 жыл бұрын
Fantastic tutorial. To the point and accurate. Was able to get my own form set up in 30mins :D
@Levibailey75
@Levibailey75 4 жыл бұрын
Play the video and keep tapping the number 2.. so satisfying
@libertyjoseph8523
@libertyjoseph8523 6 жыл бұрын
Thanks for the awesome lecture. I have been looking for a simple tutorial like yours. Please, You just nail it. You are a blessing.
@FutureAIDev2015
@FutureAIDev2015 5 жыл бұрын
This is really helpful! I’m going to try it later to see if I can get it to work on my own server.
@sujonpramanik1151
@sujonpramanik1151 7 жыл бұрын
Sir Your Tutorial is very good. I learned a lot from you , thanks Man
@DarkLightBoy
@DarkLightBoy 6 жыл бұрын
Dood your the best it took me 3 days why the email doesn’t send to me and you are the god you deserve 10000000000000000 subs
@vishwaratna4195
@vishwaratna4195 2 жыл бұрын
Excellent video tutorial.
@HASSANMUSTAFAhass797
@HASSANMUSTAFAhass797 7 жыл бұрын
I learned a lot from you , thanks Man
@joydavis6836
@joydavis6836 2 жыл бұрын
Thank you sooo much! Just what I needed.
@grsescueladepatinaje2768
@grsescueladepatinaje2768 8 ай бұрын
First of all, I'd like to thank you for your excellent work, which makes the incomprehensible so easy. However I have a problem, the last 2 lines of code cause a syntax error that I can't fix. Thank you in advance for your reply.
@woodwiseskateboarding6092
@woodwiseskateboarding6092 5 жыл бұрын
Am learning a lot from this.. So helpful
@olansean9868
@olansean9868 6 жыл бұрын
YOU ARE THE BEAST OF PHP , love your job, you saved my ass :)
@shampoable
@shampoable 6 жыл бұрын
Works like a charm from the first time
@emreklcaslan4184
@emreklcaslan4184 3 жыл бұрын
Thanks from Turkey :)
@N3v3r2Lat3
@N3v3r2Lat3 2 жыл бұрын
Thx for the wonderful tutorials it was really helpful
@hamadhabarneh5875
@hamadhabarneh5875 7 жыл бұрын
Well done course and very clear language and writing. Thank you and good luck.
@whitebearddeveloper9038
@whitebearddeveloper9038 4 жыл бұрын
You are great man... Thanks for this helpful tut...
@hawlhu
@hawlhu 7 жыл бұрын
期待下個影片的說,馬上按個讚的說
@neldcneldc3226
@neldcneldc3226 5 жыл бұрын
Great video, I know understand how to actually make a php form...
@maaiziyas9854
@maaiziyas9854 4 жыл бұрын
Hi, I would be grateful if you could make a tutorial on a functional shopping cart
@ogbeide-ihamaosagie8851
@ogbeide-ihamaosagie8851 6 жыл бұрын
Hi after adding the code to my website when i click the submit button it just redirects me to contact.php and nothing happens no message is sent
@devdeclan
@devdeclan 4 жыл бұрын
You are probably running it on an apache2 server, this cannot send data to your Gmail address, you have to have a website up with a domain for the data to send. The reason why it's redirecting you to your code on contact.php is that you don't have a domain, you just viewing it on a local file. Sorry if you don't understand, I can't explain properly.
@shady7012
@shady7012 4 жыл бұрын
@@devdeclan actually ive uploaded it on Fast.io but it still opens the php code in a new tab. even tho the site is online
@michaelvanin1321
@michaelvanin1321 4 жыл бұрын
This happened to me also at first until I realized that the page containing my contact form was not titled 'index.php' but rather something else (index.html in my case). Changed the contact form to reflect this, tested and worked. Thanks Dani for the tutorial.
@n0username0n
@n0username0n 4 жыл бұрын
Hey mate ive been chasing my tail for the past 3 hours on the same issue thinking ive missed a ; or } but no turned out that in my html that i had forgotten to
@valleyscharping
@valleyscharping 4 жыл бұрын
@@n0username0n DUDE, YOU ARE AN ABSOLUTE LEGEND. I'VE BEEN PULLING HAIR OUT TRYING TO FIGURE OUT WHAT I MISSED. Thank you for such a simple fix (it always is something small you missed). I praise God for you, man! Thank you!
@ElRadioDJ913
@ElRadioDJ913 7 жыл бұрын
The content that you always upload made me feel more confident in programming even though I love film and video games. Keep it up man!
@im_dd
@im_dd 6 жыл бұрын
Thank you very much! Easy to follow and works as it should. I will definitely be checking out more of your tutorials.
@alaeddinabugrara3309
@alaeddinabugrara3309 4 жыл бұрын
As always clear and straight to the point! Great lesson thank you so much
@stellame7842
@stellame7842 6 жыл бұрын
I'd kiss you if I could. Thank you so much. Worked perfectly 1st time. Have only worked in HTML, so to be able to do a php file and have it work 1st time is awesome.
@JescodStudios
@JescodStudios 4 жыл бұрын
Thank you so much. It worked out for me!
@mikeb2604
@mikeb2604 4 жыл бұрын
Thank you for this! Very informative and instruction is clear!
@Rubenjr005
@Rubenjr005 4 жыл бұрын
This worked Perfectly. Thank you!
@mehak_editz4135
@mehak_editz4135 4 жыл бұрын
how ??????? i did same but didnt recieve email
@petsimk
@petsimk 6 жыл бұрын
Another really good and easy to follow tutorial.
@nicktriantafillidis1447
@nicktriantafillidis1447 4 жыл бұрын
so for those who have the same problem with me (on url shows mailsend but not receiving any mail in your inbox) change your webhost, when i changed it worked perfectly the only thing is that the mails go to spam folder
@nicktriantafillidis1447
@nicktriantafillidis1447 4 жыл бұрын
@@hamza512b yeah still havent fixed it
@nigelpallatt
@nigelpallatt 4 жыл бұрын
Thank you very much. Can you do it again but with validation and security in mind? Great Tut!
@cytrobit
@cytrobit 5 жыл бұрын
Thanx. Helped me a lot. Good work!
@hotdogjoe4039
@hotdogjoe4039 5 жыл бұрын
please tell me the set up that you are using to make this!? what kind of mic are you using? What software are you using to screen record!? Aside from the great short and sweet video about php. The quality of this video is so satisfying to me
@Dani_Krossing
@Dani_Krossing 5 жыл бұрын
I think I was using the Audio Technica AT2020 at this point when recording (+ a lot of post sound editing). And then I used Bandicam to record the screen.
@hellangel28
@hellangel28 5 жыл бұрын
This is a tutorial to show how easy it is to send an email via PHP using native functionality, though it is not secure at all. Do not use a contact formular like this in any production/live environment! If you do not sanitize the user input, additional sendmail parameters can be injected, making it possible to remotely execute arbitrary code! I would highly recommend to use packages like PHPMailer or similar, which include mitigations against this type of attacks.
@LeonardoGrinn
@LeonardoGrinn 6 жыл бұрын
The easiest tutorial ever !!
@DemonIgnis
@DemonIgnis 6 жыл бұрын
when did he create the index.php file?
@slap8704
@slap8704 7 жыл бұрын
AMAZING EASY AND TO THE POINT. Thanks a lot for this tutorial! Got one question tho. is there a way to have a confirmation page or lightbox or an alert kind of thing once the email is sent?
@danielambriz881
@danielambriz881 2 жыл бұрын
I love this video! Do you have one in which you use the htmlspecialchars function in a form such as this one?
@Dani_Krossing
@Dani_Krossing 2 жыл бұрын
Hmmm don't think so... but you should add it after every form submission, even though I didn't in the video 🙂 So for example instead of: $message = $_POST["message"]; You write: $message = htmlspecialchars($_POST["message"], ENT_QUOTES, 'UTF-8');
@danielambriz881
@danielambriz881 2 жыл бұрын
@@Dani_Krossing Thank you much and happy new year:)))
@hydrocarbon8658
@hydrocarbon8658 6 жыл бұрын
you have great videos bro thanks you helped me alot on my programming journey
@7thofseventh
@7thofseventh 5 жыл бұрын
Thank you so much for this tutorial! Helped a lot!
@dailyone986
@dailyone986 6 жыл бұрын
Best tutorial, Thank You!
@marlonM_1985
@marlonM_1985 3 жыл бұрын
Love your tutorials man !
@rembrandt702
@rembrandt702 6 жыл бұрын
I enjoy and like your videos, even though you miss on somethings (like explain certain part of your code). Still I will always check out your stuff.
@nekel1990
@nekel1990 6 жыл бұрын
@codewithwasif3517
@codewithwasif3517 5 жыл бұрын
Thanks Man! This video helped a lot !
@robeeeeen
@robeeeeen 3 жыл бұрын
Once again, thanks you!
@drcod3r329
@drcod3r329 7 жыл бұрын
Welcome back please i need a tutorial about integrating payment proccessors like paypal please :)
@Dani_Krossing
@Dani_Krossing 7 жыл бұрын
DrHanna I will look into it :) great tutorial idea.
@fantazero1494
@fantazero1494 6 жыл бұрын
IT WORKS. Perfectly.
@daferbahrar34
@daferbahrar34 6 жыл бұрын
can you help me ? if ok please send to me message to idafer.dev@gmail.com or chat live in youtube, thanks.
@antonismesiris443
@antonismesiris443 7 жыл бұрын
Is it possible in later videos, to explain how we should make dynamic websites? I ve learned a lot about respnsive static pages but i a bit confused about how to take apart the site to be functional for php editting and accessing it from a simple cms.. thank you again sir!
@Frankie.Frankie.
@Frankie.Frankie. 5 жыл бұрын
ty so much. Exactly what I needed
@bartmuller100
@bartmuller100 5 жыл бұрын
Awesome Tutorial! Thank you!
@basiccodingwithadam8125
@basiccodingwithadam8125 5 жыл бұрын
Great explanation!
@iajoe9077
@iajoe9077 10 ай бұрын
Thanks sir! 🙏 How do i need to do to use local/offline server for testing my contact form?🙏
@HakaiOver9k
@HakaiOver9k 4 жыл бұрын
This is very helpful! I just wanted to ask, as my site is not hosted atm I'm a bit confused about how should I test my funcionality over the code written in php? Do I need a local server or what? Thanks in advance!
@enggaabow3801
@enggaabow3801 4 жыл бұрын
Thank you sir🙏
@suriyasree6363
@suriyasree6363 6 жыл бұрын
It's really helpful man...thanks
@ndifrekeumoren3548
@ndifrekeumoren3548 6 жыл бұрын
Hey thanks Danny for the great videos!!! Please can you show me how to send the form data to the database as well as the email address at the same time? Would really appreciate it. Thanks once again!
@isaacodeh8819
@isaacodeh8819 4 жыл бұрын
You’ve helped so much
@Idle_dimension
@Idle_dimension 5 ай бұрын
What website hosting platform did you use in this video?
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Create a Working Contact Form in HTML that emails you (w/ spam prevention too!)
22:18
Send emails from a HTML Contact Form
12:40
Code with Ania Kubów
Рет қаралды 394 М.
Working Contact Form in PHP with Validation & Email Sending
22:55
FollowAndrew
Рет қаралды 186 М.
How do you Submit an HTML Form?  How does it work?
17:02
Web Dev Cody
Рет қаралды 90 М.
Learn PHP in 15 minutes
15:00
Jake Wright
Рет қаралды 2,7 МЛН
Create A Contact Form with PHP That Can Actually Send Mails!
26:18
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН