This was an excellent video. I am a pretty experienced coder who has been struggling with godaddy nonsense and I want you to know that your explanation of PHP mail functionality was excellent. Anyone watching this, like most videos, I suggest having the doc's open so you can go threw each line of code with him and really understand what he's saying.
Two days of research to find a way to use my own pre-existing form and integrate it with mail chimp! Everything I was finding involved creating a form through mail chimp and embedding it in my site. I already have my site designed and just needed the functionality of the opt in box to work with my autoresponder list. Finally found your video that gave me the ground work to make it happen! Kudos to you sir, and thank you so much for making this video!
There is a lot of information on how to set-up the form and to even make the form dynamic, but nothing that actually showed the PHP information. Bravo. I actually understood it.
I live in the UK and had a problem with both the $phone validation and the $url validation you're using. So I switched to (!filter_var($phone, FILTER_SANITIZE_NUMBER_INT)) for the $phone and (!filter_var($url, FILTER_VALIDATE_URL)) for the $url, which both work fine. Very well explained tutorial, thank you.
"value=" is not a valid argument for "textarea" tag....after a little research I found the right way to make it work (stackoverflow): Thank you very much ! I am a beginner and I just learned a lot from your video!
Thank you Clever Techie! I'm new to coding. The files worked after renaming my contact.html page (started with html and css) to contact.php and transferring them to the server. Had to tweak them a bit, but my contact page works great! Did catch the $message_body variable. Also added between tags (instead of inside the opening tag) in order to keep my message (textarea) from getting cleared. Watched the video again to catch the at the end that shows you how to display $success. I'll definitely subscribe to your channel!
Hello @clever Techie thank you for this, I was run ragged for weeks trying to do email form submits using ruby on rails and it was a fucking nightmare with the MVC architecture. PHP done this in 3 files whilst ruby had about 15. Thank you once again
I just wasted 2 days of my life, copying the form from the same site and doing what you have done, if only I had watched this video. Nice how you kept the inputs on the screen when a mistake was made I will use that. Better not to use a loop when sending out the mail, if you list them all one after the other you can space the mail out with /n. Nice work, any ideas about some anti spamming code, it seems to block most forms of attack but will be wide open to a spammer.
Is this why only the comments get sent? My contact form works, but in the email I received in my test, there was no name, email, ph# or website, just comments, so I have no clue who sent the message. thanks
Yeah good spot. I actually noticed it in the video right away because he said "message body" out loud, while typing "message" so that made it apparent if you really paid attention ^^
thank you for the correction. can you tell me how can I send an acknowledgment mail to the person who fills the inquiry form ? As in : Thank your filling up the form, the XYZ team will contact you withing 24 hours. this message should be sent after the user clicks on submit button. is it possible ?
I have noticed one issue however while testing... OK so validation & form submit both work correctly. After a successful submit, the variables get cleared and page refreshes. NOW at this point - when I refresh the page again manually (all fields empty!!) and wait a minute or two, I receive another email from the form with the previous variable intact from before they were cleared.... Any thoughts?
For anyone who only recieves the message without other info. $to = 'your@email.com'; $subject = 'Web email'; if (mail($to, $subject, $message_body)){ He only typed message so you have to rewrite it to message body. 22:45
That did the trick for me! Thanks man! --- Clever Techie, please update your "form_process.php" file with "message_body" to avoid others having the same problem.
Will this validation method STOP spam email? In regards to the comment below me and your issues with godaddy, I have had the same issues with hostgator. So kudos to the creator of this video!
Just a thanks to clever techie, am an old HTML and PHP user, any recommendations of what video to watch doing a refresher course of doing html and php again, was stuck doing oracle and java for a long time. Videos like these helps. BTW where do you download the software your using.
Hi there!!! Thank you for this video, it's really great. I have one question. If I have one page site and my contact form is on the end of the page, how to prevent page to go back to the top if there are some error or the message is sent and make it stay on the form section? Thanks!!!
Hey Techie! This video is great! What text editor are you using and how do you open it in the browser from the text editor. I am using VS code but I can only open HTML files through a live server in Google chrome. I would really appreciate your help.
i guess Im asking the wrong place but does someone know of a way to log back into an instagram account..? I stupidly forgot my password. I would appreciate any assistance you can offer me.
@Atlas Cayden thanks for your reply. I found the site through google and Im waiting for the hacking stuff now. Takes a while so I will get back to you later with my results.
Hi there! thanks for taking the time to explain in detail. Please is there a way to record the same contact form data into mysql database at the same time? will the php connection script go into; form.css, form.php, or form_process.php? thanks
Thank You for the the tutorial. Please help me with some doubts. What should come at "sendmail_from" in php.ini file ? what should come at $to variable in form_process.php ? Help me
Just a couple of questions 1) I am making a forum and value="" only works for but the values in and are not remembered so is there any way around that? 2) Is there a way to remember "toggle state" so that a section of a page that is opened by clicking a button remains open after page reloads due to error?
Hello, I am trying to work on a contact form and this video seems very helpful. I wanted to ask, do I need to download PHP and Apache to do this? I've never worked with PHP before. Thank you!
Hi, thanks for this - a huge help! I'm new to php. My email is being sent and the rules are working, however the error variables and success variable are not coming back to my form spans. I had to use long form php tags in order not to get an error so they now look like: Also, how to prevent page reload on submit? Thanks
Great Tutorial thank you!. In order to call itself we could use $_SERVER['PHP_SELF'] or the name of the php file directly. Which one is the better/more secure option? What are the differences? Thanks
hi clever techie thank you for this video i"m getting success message but i"m not getting the email. I'm using local host and i put SMTP = smtp.gmail.com and smtp port to 465. please helpme!
this was really helpful !! but how do you preview within the server? I am using brackets and for some reason, it will not allow me to preview the php file
great job man, I would like to change on the settings the phone number you are using and maybe using a more complex tool that would detect from the ip the country list, and validate the phone number, do you know how can i do that? THanks
Ok so your telling me that once this has fully been coded once information has been submitted all the information goes to your email address if not then what's that called?
Need help... How it work? with xamp? I try to send and nothing happened ... what else i needs to do ? How can i send to my email ? what you used? it is not smtp
You have answered a w3schools question which they never answered after their same pho form code on how to display an error message. Awesome. I then learnt jquery and if filling out boxes wrong validation worked, only if i never filled out boxes and just clicked submit on a blank form, error messages would appear in all the form boxes and you'd stay on the html form page, only I wiuld receive an email to. Blank fields. This is obviously because php was waiting untill submit button selected as jquery was. Any obvious solution ...?
Great tutorial, thanks a lot for sharing it has helped me a bunch!! FYI, you forgot a closing php tag on the form_process code. May confuse someone who is just starting out.
Thank you for this video, it is really helpful. But I also want to validate textarea field (show error message if it is empty). I applied the same logic as applied for other fields but it does not work. I am not getting error message after textarea. Please suggest something.
Hi! Great Tuto. But i still have a problem. I did everything as you did. But when i sens the message the message area is cleared but not the other txt areas i.e name, email...and the confirmation message is not displayed. Coule you help please...
Why I got the php value code, shown up in the text bar in the form? Like where I got the input type text area, my website shows the code: for example. What am I doing wrong?
Thank you for the video. I have a question I downloaded XAMPP but it does not work because I have windows x86 and all versions of XAMPP in the website are for Windows x64 Could you please help me?
Hi, I did what you did. I modified php.ini. But it never send the e-mail. It writes an error like:"Warning: mail(): Failed to connect to mailserver at "smtp.gmail.com" port 587, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\PhpProject1\form\form_process.php on line 64" I also watched various videos on UA-cam to solve this problem but nothing worked for me. Also I want to ask some questions regarding your video? 1. Where did you write your email account pass? Is not it necessary? 2. In other videos people used sendmail.ini file. But you never mentioned it. Which one is correct? Thanks in advance.
I have the same issue and I am guessing OP is running a mail service in parallel with WAMP that intercepts the mail and makes the connection. The password is set in that parallel mail system, methinks. Other vids refer to variables set with the password, where this .ini does not.
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in G:\xampp\htdocs\lessons\formcontact\form_process.php on line 64-----i have this error to i am fed up
Hey Clever Techie, I am working on a website for a class right now and really wanted to incorporate something similar to what you've done here, but when i try and submit the form, the page loads constantly and never actually loads anything. It also never shows me the success message or send the email. Would you know any way around this?
Hey, thanks for this tutorial. I'd really like to be able to add the option to upload images, pdfs and doc attachments before hitting submit. Is there a way to add this ability to this existing form?
Hi, can you please help me add code few more input fields to my existing contact form if I send you my php files? I am struggling at the moment. Thanks
Dear first of all Thank You so much for this tutorial, I've created a Pop Up Contact Form with JavaScript, it works and validates perfectly! but problem is when I click on submit button (without any filling details) on contact form it disappears from the page, when again I opened contact form the error messages are appeared like (Name is required etc), What I want is that contact form should appeared till user filled all fields and error message should appear in case user missed any filed (it shouldn't have to disappear until data is being send successfully) what should I do??? Thank You again :)
Hi just watched your video, great tutorial by-the-way. Is there a way I can change the $success div element (on line 65 of the form_process.php), so the background changes color after the form has been submitted. Any help would be appreciated, thanks!
after all the validation my question is how would you insert it in the database? because sending the message to an email is not what im after for but its about on how could i save it into the database after checking or validating all data.
Hi Techie! It's a just amazing tutorial to learn contact form with validation. Thank you very much for this. But i have some problem with end up. It says, Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\contact_form\form_process.php on line 64 Would you kindly tell me how to fix it? It's very urgent.
Good morning, I would like to know how do you open php.ini this file. Where It is found? Then you restart Apache in the services in the windows. I wait you an answer. Thanks a lot for a video.
first of all, thank you for this tutorial, it really is helping a lot of people and you did a wonderful job on it. SECOND OF ALL, why the hell didn't you say or write or mention that put AN U.S. PHONE VALIDATOR, and i must enter XXX-XXX-XXXX phone to validate it?? i just spent last 3 hours trying to figure out what the hell is going on... xD i hope ill spend less time finding the right validator... :D
Well I had to subscribe/patreon to get the code and it doesn't work at stopping anything. Have you tried your own code to see if you can input fake emails and url's and phones and still send it? Would be curious to know if you have tried to spam yourself.
This was an excellent video. I am a pretty experienced coder who has been struggling with godaddy nonsense and I want you to know that your explanation of PHP mail functionality was excellent. Anyone watching this, like most videos, I suggest having the doc's open so you can go threw each line of code with him and really understand what he's saying.
Two days of research to find a way to use my own pre-existing form and integrate it with mail chimp! Everything I was finding involved creating a form through mail chimp and embedding it in my site. I already have my site designed and just needed the functionality of the opt in box to work with my autoresponder list. Finally found your video that gave me the ground work to make it happen! Kudos to you sir, and thank you so much for making this video!
There is a lot of information on how to set-up the form and to even make the form dynamic, but nothing that actually showed the PHP information. Bravo. I actually understood it.
I live in the UK and had a problem with both the $phone validation and the $url validation you're using. So I switched to (!filter_var($phone, FILTER_SANITIZE_NUMBER_INT)) for the $phone and (!filter_var($url, FILTER_VALIDATE_URL)) for the $url, which both work fine. Very well explained tutorial, thank you.
I did not know codepen, you changes my live forever!!! Thank you. Cheers
"value=" is not a valid argument for "textarea" tag....after a little research I found the right way to make it work (stackoverflow):
Thank you very much ! I am a beginner and I just learned a lot from your video!
They way you explain how to edit the ini file and retrieve your smtp from ur ispn SAVED ME!!!!!
Outstanding tutorial, even after 4 years. Thanks, CT!!!
This video made me understand a whole lot more PHP and how it's working! I can't thank you enough sir!
Thank you Clever Techie! I'm new to coding. The files worked after renaming my contact.html page (started with html and css) to contact.php and transferring them to the server. Had to tweak them a bit, but my contact page works great! Did catch the $message_body variable. Also added between tags (instead of inside the opening tag) in order to keep my message (textarea) from getting cleared. Watched the video again to catch the at the end that shows you how to display $success. I'll definitely subscribe to your channel!
Hello @clever Techie thank you for this, I was run ragged for weeks trying to do email form submits using ruby on rails and it was a fucking nightmare with the MVC architecture. PHP done this in 3 files whilst ruby had about 15. Thank you once again
You got me for a moment, I was skipping for 5sec getting to one part and I saw you typed in Vladimir... my name is Vladimir.
Thanks very much, Clever Techie. Picked up a couple of sound ideas from you. I appreciate.
Glad to help
I just wasted 2 days of my life, copying the form from the same site and doing what you have done, if only I had watched this video.
Nice how you kept the inputs on the screen when a mistake was made I will use that.
Better not to use a loop when sending out the mail, if you list them all one after the other you can space the mail out with /n.
Nice work, any ideas about some anti spamming code, it seems to block most forms of attack but will be wide open to a spammer.
Very good tutorial! I built my contact form with your help and it works :) Thanks
Hi!, you don't send the message_body to your email, just the $message textarea.
You need to put $message_body in mail function, don't $message var.
Yes, you're correct! I noticed this mistake after I already uploaded the video, thank you for mentioning this :)
Is this why only the comments get sent? My contact form works, but in the email I received in my test, there was no name, email, ph# or website, just comments, so I have no clue who sent the message.
thanks
Yeah good spot. I actually noticed it in the video right away because he said "message body" out loud, while typing "message" so that made it apparent if you really paid attention ^^
thank you for the correction.
can you tell me how can I send an acknowledgment mail to the person who fills the inquiry form ?
As in :
Thank your filling up the form, the XYZ team will contact you withing 24 hours.
this message should be sent after the user clicks on submit button. is it possible ?
Thank you, helps me solve the problem!
Working!! Finally a good source!!
thank you for the tutorial, it really help me understanding how the validation works
Great tutorial, thanks for the help - did a bit of customization and got it all working!
I have noticed one issue however while testing... OK so validation & form submit both work correctly. After a successful submit, the variables get cleared and page refreshes. NOW at this point - when I refresh the page again manually (all fields empty!!) and wait a minute or two, I receive another email from the form with the previous variable intact from before they were cleared.... Any thoughts?
Why didnt you get the values input (e-mail, phone...)in the outlook e-mail? Thanks
For anyone who only recieves the message without other info.
$to = 'your@email.com';
$subject = 'Web email';
if (mail($to, $subject, $message_body)){
He only typed message so you have to rewrite it to message body. 22:45
That did the trick for me! Thanks man! --- Clever Techie, please update your "form_process.php" file with "message_body" to avoid others having the same problem.
hi in minute 10:02 when i click Submit it says: {"code":"MethodNotAllowedError","message":"POST is not allowed"}. can you please help me
Bingo... the way you explained it was absolutely simple and to the point.... Keep on the good work mates.... :)
If people open the file and it looks like code you will need to put right at the start of your form.php for it to work! Your welcome
Really?How come?
Will this validation method STOP spam email? In regards to the comment below me and your issues with godaddy, I have had the same issues with hostgator. So kudos to the creator of this video!
Thanks a lot for making this, I have been looking for a good php form tutorial all day. Glad I found this! Stuff works ^^
Thank you for the tutorial. How would i use this method if I had to choose at least one checkbox in my contact form or an option from a drop down.
Just a thanks to clever techie, am an old HTML and PHP user, any recommendations of what video to watch doing a refresher course of doing html and php again, was stuck doing oracle and java for a long time. Videos like these helps. BTW where do you download the software your using.
I am not getting Apache service in my services, where else should I find it?
Thank you very much! You made it easier for me to understand the steps and how they work. :)
Hi there!!! Thank you for this video, it's really great. I have one question. If I have one page site and my contact form is on the end of the page, how to prevent page to go back to the top if there are some error or the message is sent and make it stay on the form section? Thanks!!!
HELP! when i click on submit just to check if my errors will appear nothing happens, and i checked my code for like 1000 times and everything is ok.
Thanks a lot for the tutorial it very helpful
Hey Techie! This video is great! What text editor are you using and how do you open it in the browser from the text editor. I am using VS code but I can only open HTML files through a live server in Google chrome. I would really appreciate your help.
Great video Vladimir! Thank you for sharing this tutorial in such an awesome style! Really enjoyed it.
i guess Im asking the wrong place but does someone know of a way to log back into an instagram account..?
I stupidly forgot my password. I would appreciate any assistance you can offer me.
@Albert Calvin instablaster ;)
@Atlas Cayden thanks for your reply. I found the site through google and Im waiting for the hacking stuff now.
Takes a while so I will get back to you later with my results.
@Atlas Cayden It did the trick and I actually got access to my account again. Im so happy:D
Thank you so much, you saved my account !
@Albert Calvin No problem :)
Hi there! thanks for taking the time to explain in detail. Please is there a way to record the same contact form data into mysql database at the same time? will the php connection script go into; form.css, form.php, or form_process.php? thanks
Thank You for the the tutorial.
Please help me with some doubts.
What should come at "sendmail_from" in php.ini file ?
what should come at $to variable in form_process.php ?
Help me
Thanks! You helped me a lot!!
By the way, what if I let the "action" property empty? Is this a bad practice?
Just a couple of questions
1) I am making a forum and value="" only works for but the values in and are not remembered so is there any way around that?
2) Is there a way to remember "toggle state" so that a section of a page that is opened by clicking a button remains open after page reloads due to error?
Hello, I am trying to work on a contact form and this video seems very helpful. I wanted to ask, do I need to download PHP and Apache to do this? I've never worked with PHP before. Thank you!
Hi Luz, did you figure out what Apache PHP you have to download? I am also trying to get this contact form working!
Hi, thanks for this - a huge help!
I'm new to php. My email is being sent and the rules are working, however the error variables and success variable are not coming back to my form spans. I had to use long form php tags in order not to get an error so they now look like:
Also, how to prevent page reload on submit?
Thanks
For any newbies having the same problem, example worked for me.
i am using the Dreamviwer and their is no loacthost for run this an you suggest which local host i will install for testing the code.
Try installing spellcheck first. Do you charge for your services, how much?
Wow. Rude. There's a way to get subscribers dude. Are you serious?
seriously ? Thats really rude. No one is perfect and Its not his mother language as well.. Even you have done mistakes during this tutotrial
the php.ini file is it in the same folder with the files you are using? If yes are we linking the page as we have done with the css and php files?
Great Tutorial thank you!. In order to call itself we could use $_SERVER['PHP_SELF'] or the name of the php file directly. Which one is the better/more secure option? What are the differences?
Thanks
hi clever techie thank you for this video i"m getting success message but i"m not getting the email. I'm using local host and i put SMTP = smtp.gmail.com and smtp port to 465. please helpme!
Very well explained. Thks a lot!!
what if i have more than One form on the same page to validate using action="" How will i be able to differentiate the form
Can't seem to get the words "Message" to display in the form.php. If I can get this on issue resolved it would be great. Great video!
Thank you for the info. However, my error are not being caught. How can I send you the code I'm using (which is mostly yours) so you can check it out?
Rather than using PHP's mail() function, it is better to use a library such as PHPMailer or SwiftMailer.
Hello! Can you add a Part 2 video on which you add a confirm screen, and a complete screen with or without sessions?
how to fix this error when submitting
{"code "methodNotAllowedError", "message":POST is not allowed"}
Can you do think same video using Adobe Dreamweaver 2018...im not sure how to implement some of the things you do into my site on dreamweaver. Thanks!
this was really helpful !! but how do you preview within the server? I am using brackets and for some reason, it will not allow me to preview the php file
sir i am not getting color after adding
great job man, I would like to change on the settings the phone number you are using and maybe using a more complex tool that would detect from the ip the country list, and validate the phone number, do you know how can i do that? THanks
Well explained thanks goodwork..... hope you will do one on re-captcha
Thank you brother
Ok so your telling me that once this has fully been coded once information has been submitted all the information goes to your email address if not then what's that called?
Need help...
How it work? with xamp?
I try to send and nothing happened ... what else i needs to do ?
How can i send to my email ?
what you used? it is not smtp
Nice tutorial. Thank u
Welcome!
You have answered a w3schools question which they never answered after their same pho form code on how to display an error message. Awesome. I then learnt jquery and if filling out boxes wrong validation worked, only if i never filled out boxes and just clicked submit on a blank form, error messages would appear in all the form boxes and you'd stay on the html form page, only I wiuld receive an email to. Blank fields. This is obviously because php was waiting untill submit button selected as jquery was. Any obvious solution ...?
Great tutorial, thanks a lot for sharing it has helped me a bunch!! FYI, you forgot a closing php tag on the form_process code. May confuse someone who is just starting out.
Thank you for this video, it is really helpful. But I also want to validate textarea field (show error message if it is empty). I applied the same logic as applied for other fields but it does not work. I am not getting error message after textarea. Please suggest something.
I upload the file on my hosting server, but whenever i send mail, it say mail sent successfully but not sending to my mail id plz help
Hi! Great Tuto. But i still have a problem. I did everything as you did. But when i sens the message the message area is cleared but not the other txt areas i.e name, email...and the confirmation message is not displayed. Coule you help please...
Maybe I'm seeing it wrong, but in the email send to you, where do you see the sender's name, url & phone number?
same problem
It's because he sent only the $message instead of the $message_body
@@wethekidsz thank you I was stuck on this
Why I got the php value code, shown up in the text bar in the form?
Like where I got the input type text area, my website shows the code: for example. What am I doing wrong?
Good stuff. Thanks man ✊🏽
Thanks, do you know how to prevent page reload after submitting with AJAX?
Thank you for the video.
I have a question
I downloaded XAMPP but it does not work because I have windows x86 and all versions of XAMPP in the website are for Windows x64
Could you please help me?
Hello. Can any help with how i would send the completed form to my workbench DB table instead of sending to an email account like the video shows?
thank you for the tutorial
Hi, I did what you did. I modified php.ini. But it never send the e-mail. It writes an error like:"Warning: mail(): Failed to connect to mailserver at "smtp.gmail.com" port 587, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\PhpProject1\form\form_process.php on line 64"
I also watched various videos on UA-cam to solve this problem but nothing worked for me. Also I want to ask some questions regarding your video?
1. Where did you write your email account pass? Is not it necessary?
2. In other videos people used sendmail.ini file. But you never mentioned it. Which one is correct?
Thanks in advance.
I have the same issue and I am guessing OP is running a mail service in parallel with WAMP that intercepts the mail and makes the connection. The password is set in that parallel mail system, methinks. Other vids refer to variables set with the password, where this .ini does not.
He said set it to port 25 not 587, try that......
I had to upgrade my hosting account. At the base shared server acccount, I didn't have access to all the controls you really need to send emails.
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in G:\xampp\htdocs\lessons\formcontact\form_process.php on line 64-----i have this error to i am fed up
I think google disabled support for such test emails on gmail
Thank you!
It really helped me a lot.
You're welcome!
Its great to see that there are still people as clever and helpful as yourself on the internet...
IT WORKS 👍
nice and clear video. thanks
Netbeans...would there be any other platform/editor that would suffice for these purposes?
Thanks!
there is XAMPP, which allows you to host a full website locally on your machine to test
Thanks for this! Great video.
Hey Clever Techie, I am working on a website for a class right now and really wanted to incorporate something similar to what you've done here, but when i try and submit the form, the page loads constantly and never actually loads anything. It also never shows me the success message or send the email. Would you know any way around this?
Hey, thanks for this tutorial. I'd really like to be able to add the option to upload images, pdfs and doc attachments before hitting submit. Is there a way to add this ability to this existing form?
Hi, can you please help me add code few more input fields to my existing contact form if I send you my php files? I am struggling at the moment. Thanks
Dear first of all Thank You so much for this tutorial, I've created a Pop Up Contact Form with JavaScript, it works and validates perfectly! but problem is when I click on submit button (without any filling details) on contact form it disappears from the page, when again I opened contact form the error messages are appeared like (Name is required etc), What I want is that contact form should appeared till user filled all fields and error message should appear in case user missed any filed (it shouldn't have to disappear until data is being send successfully) what should I do???
Thank You again :)
the video helped a lot but the localhost has the wrong stmp values, how would i find the right values
Hi just watched your video, great tutorial by-the-way. Is there a way I can change the $success div element (on line 65 of the form_process.php), so the background changes color after the form has been submitted. Any help would be appreciated, thanks!
jQuery
How to Quickly learn php ? what are Differences between these languages AJAX XML DOM ? Please tell briefly !
Hey dude!!!!! You help me a lot....thank you thank you very much.. and that was easy as Pie LOL! 🤣
after all the validation my question is how would you insert it in the database? because sending the message to an email is not what im after for but its about on how could i save it into the database after checking or validating all data.
Works except the input placeholders are not showing up in IE11 looks great in chrome but not right in Internet explorer. any suggestions?
Hi Techie! It's a just amazing tutorial to learn contact form with validation. Thank you very much for this.
But i have some problem with end up. It says,
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\contact_form\form_process.php on line 64
Would you kindly tell me how to fix it? It's very urgent.
hi,please have you resolved the problem am getting the same error here.Please if you have done that,can you please help me out? .
very nice helped me a lot brother
good kedep going brother
Awesome tutorial. Thans bro!!!
Hi Thanks for the great post. How would I include an email address that the sender of the message receives?
You just call another mail function with sender's email address and different body message.
Good morning,
I would like to know how do you open php.ini this file. Where It is found?
Then you restart Apache in the services in the windows.
I wait you an answer.
Thanks a lot for a video.
first of all, thank you for this tutorial, it really is helping a lot of people and you did a wonderful job on it.
SECOND OF ALL, why the hell didn't you say or write or mention that put AN U.S. PHONE VALIDATOR, and i must enter XXX-XXX-XXXX phone to validate it??
i just spent last 3 hours trying to figure out what the hell is going on... xD
i hope ill spend less time finding the right validator... :D
You can find many validators if you search on altavista
Well done
Thank you very much for the help! I have subscribed and liked this video!
It worked... Thank you soooooooooooooooooooo much
help me dude
sir, i get message "message send" but i don't get msg in my gmail inbox ??????
where is the code ?? plz
plz give php codeing ....
Validation seems to work and an e-mail got send with all the inputs but my mailbox says it's coming from an unknown sender. Why is that?
Well I had to subscribe/patreon to get the code and it doesn't work at stopping anything. Have you tried your own code to see if you can input fake emails and url's and phones and still send it? Would be curious to know if you have tried to spam yourself.
where should we include that php code in the html website. I mean in the body or head ??
Thank you for this vid. Why did you name the file containing the actual form "form.php " rather than "form.html"?
Because it includes php.
Harvert Martinez Php is a server side language. Html is not, if your file is not .php it won't process any php.