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.
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!
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!
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.
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
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!
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.
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.
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.
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.
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.
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!)
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
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 .
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
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.
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.
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
@@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!
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!
Could I use "42: How to Display Error Messages Using PHP | PHP Tutorial | Learn PHP Programming" along with this tutorial to diaplay error and success messages when someone fills out a contact form?
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
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?
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!
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
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.
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.
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');
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.
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!
I was worried to not learning this since so many years as I was only concentrated on front end development. Thanks Dani :)
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!
but pls how do u did that, co's i have tries it but is not working
I just like how easy and basic this video is to an absolute beginner of learning PHP.
Thanks for making this video!
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.
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!
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
repeat this process several hundred times and you will be a professional.
I bet you code professionally now, do you?
Great instruction, right to the point. No messing around makes this very useful and user friendly. Thanks for a great lesson.
Love your course! I'm new to php and this is very helpfull.
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!
@@gunnerjeremiah892 use the forgot password button lol
Absolutely the best tutorial for contact form on the entire web! Thank you!
Thank you Dani! Thanx to your video, I managed to make a contact form on my portfolio web site working!
I been looking for hours to my question "Can i test my PHP form using local host? " Thank you for giving the answer =)!
Yes but it require quite a bit of setup
I actually got this one straight after many attempts using other videos. Thanks.
How did you get it right, please, I have tried everything
My mistake was not capatilizing the POST inputs haha Thank you so much buddy. Its working!!
I really love your manner of presentation and teaching sir
You are the one youtuber I was looking for.
Hey this works with my Gmail! Don't know if anything has changed but just wanted to give a heads up.
Hello can you please tell me how it wirked for you with gmail ?? because don't want to work for me !!
PLS TELL ME HOW THE HECK IT WORKED FOR YOU PLSPLSPLSPLSPLSSSSSSSSSS
@RUSAFI BUT HOW
Works like a charm from the first time
Thank you for explaining clearly and precisely.
Thanks from Turkey :)
Struggling years and years ,Thank you Bro
Sometimes I feel that you teach way better than others
By visiting your channel I am learning usefully day by day.
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.
Play the video and keep tapping the number 2.. so satisfying
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.
Very good, easy to follow video! The only video anyone needs on this subject, thank you!
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.
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.
Best programming channel ever! You make PHP fun and easy like never seen before
The way you teach us is super good and open Sir ❤.
Thank you so much
Hi, I would be grateful if you could make a tutorial on a functional shopping cart
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.
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!)
I learned a lot from you , thanks Man
This was the most useful tutorial ive seen for this thanks so much
You have a potential to be a web development teacher, thank you very much Sir, great tutorial indeed! :)
Thank you sooo much! Just what I needed.
Am learning a lot from this.. So helpful
I followed the instructions and it worked. Thanks
Did you use xammp or you host it
awesome, just what I was looking for. Thanks a lot for sharing!
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
@@hamza512b yeah still havent fixed it
This is really helpful! I’m going to try it later to see if I can get it to work on my own server.
IT WORKS. Perfectly.
can you help me ? if ok please send to me message to idafer.dev@gmail.com or chat live in youtube, thanks.
The easiest tutorial ever !!
when did he create the index.php file?
期待下個影片的說,馬上按個讚的說
Tnx sir, I tried many other tutorials , yours is easier and works instantly .
Thank you very much. Can you do it again but with validation and security in mind? Great Tut!
Awesome content!
I kept thinking I needed to add jQuery to click the submit button.
So much time saved!
Thank you!
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 .
Thx for the wonderful tutorials it was really helpful
Excellent video tutorial.
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 :)
It cost money!
I am one of your followers, and really benefiting from your courses. Keep up the good job!
Man, you are a number one. I'm strugling with this almost whole week. Thanks a lot
Once again, thanks you!
You are great man... Thanks for this helpful tut...
Great video, I know understand how to actually make a php form...
Fantastic tutorial bro. thank you so much
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
Thanks for the awesome lecture. I have been looking for a simple tutorial like yours. Please, You just nail it. You are a blessing.
Thanx. Helped me a lot. Good work!
Thank you for this! Very informative and instruction is clear!
Love your tutorials man !
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
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
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.
@@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
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.
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
@@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!
Best tutorial,
Thank You!
As always clear and straight to the point!
Great lesson thank you so much
Another really good and easy to follow tutorial.
Thank you so much. It worked out for me!
This worked Perfectly. Thank you!
how ??????? i did same but didnt recieve email
Sir Your Tutorial is very good. I learned a lot from you , thanks Man
Well done course and very clear language and writing.
Thank you and good luck.
This is exactly I looked for, thanks 😊❤️🙏
You’ve helped so much
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!
What website hosting platform did you use in this video?
Fantastic tutorial. To the point and accurate. Was able to get my own form set up in 30mins :D
Thanks Man! This video helped a lot !
ty so much. Exactly what I needed
Could I use "42: How to Display Error Messages Using PHP | PHP Tutorial | Learn PHP Programming" along with this tutorial to diaplay error and success messages when someone fills out a contact form?
Thanks! it works for me.
Best place to learn ✓
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!
Thank you very much!
Easy to follow and works as it should. I will definitely be checking out more of your tutorials.
Thank you so much for this tutorial! Helped a lot!
Awesome Tutorial! Thank you!
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
I do not know.
what i found out was that you should do just header("Location: [the webpage that you want to redirect to].html")
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?
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!
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
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.
thanks alot really helped me
Love this , thanks
Thank you sir🙏
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.
I love this video! Do you have one in which you use the htmlspecialchars function in a form such as this one?
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');
@@Dani_Krossing Thank you much and happy new year:)))
Thanks sir! 🙏
How do i need to do to use local/offline server for testing my contact form?🙏
Best explanation so far but didn't work on my website I need help :-(