HTML/PHP Contact Form Tutorial with Validation and Email Submit

HTML/PHP Contact Form Tutorial with Validation and Email Submit

Clever Techie

8 лет назад

519,374 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@michaelzehnder3040
@michaelzehnder3040 - 12.03.2023 16:56

Well done

Ответить
@erikdinos1229
@erikdinos1229 - 09.10.2022 19:54

hello all...does anybody know how to add support for other languages,like Greek? sould use utf-8, but i did many tries with no luck....any help appreciated!

Ответить
@poucxs9246
@poucxs9246 - 06.10.2022 23:03

At least make a reusable validator.

Ответить
@borutoepisodes4550
@borutoepisodes4550 - 10.08.2022 15:17

Your link is broken

Ответить
@borutoepisodes4550
@borutoepisodes4550 - 10.08.2022 15:15

Where do I get the code

Ответить
@raqueliatheimpatientgardne8196
@raqueliatheimpatientgardne8196 - 13.06.2022 23:42

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.

Ответить
@raqueliatheimpatientgardne8196
@raqueliatheimpatientgardne8196 - 13.06.2022 21:19

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!

Ответить
@TmDefcon5
@TmDefcon5 - 04.06.2022 01:14

I have all the things done as in your video and also downloaded your source code, but it won`t send me an email

Ответить
@shitalpednekar2868
@shitalpednekar2868 - 10.04.2022 06:44

Nice tutorial. Thank u

Ответить
@dannyreg8405
@dannyreg8405 - 26.01.2022 03:49

Why doesn't anyone ever answer these comments unless they are good. What if we have questions or problems? How are they addressed?

Ответить
@dannyreg8405
@dannyreg8405 - 25.01.2022 20:52

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?

Ответить
@xhulioberberi7823
@xhulioberberi7823 - 10.12.2021 17:09

Is there any code to autofocus in PHP in case of an error ?

Ответить
@md.nournoby4523
@md.nournoby4523 - 30.09.2021 20:19

thanks but it should be free code

Ответить
@Dspysvlog
@Dspysvlog - 26.09.2021 05:58

Mantap kawan mampir ia

Ответить
@wolfgangpauli8657
@wolfgangpauli8657 - 23.09.2021 19:17

Very good tutorial! I built my contact form with your help and it works :) Thanks

Ответить
@juanmontoyaleon5224
@juanmontoyaleon5224 - 28.05.2021 05:58

Wich local server do you recomend for practicing?

Ответить
@keegankinnear344
@keegankinnear344 - 26.03.2021 15:11

every time I press the submit button, the page refreshes,how do I stop that?

Ответить
@JGameplayz
@JGameplayz - 11.03.2021 12:09

Hey dude!!!!! You help me a lot....thank you thank you very much.. and that was easy as Pie LOL! 🤣

Ответить
@useraat
@useraat - 26.02.2021 13:55

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

Ответить
@kushagradevgon31
@kushagradevgon31 - 11.02.2021 10:10

How to add this on wordpress can anyone explain me

Ответить
@NedumEze
@NedumEze - 04.12.2020 18:58

Thanks very much, Clever Techie. Picked up a couple of sound ideas from you. I appreciate.

Ответить
@cybertraining
@cybertraining - 20.11.2020 19:58

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.

Ответить
@senju31
@senju31 - 13.11.2020 05:06

No matter what I try, the email won't be sent. Anyone here could assist ?

Ответить
@rickfearn3663
@rickfearn3663 - 02.11.2020 04:05

Outstanding tutorial, even after 4 years. Thanks, CT!!!

Ответить
@glavnikralj
@glavnikralj - 29.10.2020 20:40

idiot give source

Ответить
@tbdrosa8542
@tbdrosa8542 - 30.09.2020 20:53

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

Ответить
@marianoarias9941
@marianoarias9941 - 25.08.2020 18:23

Only letters and blank spaces for names? X Æ A-12 feels discriminated here 😁.
Good vid bro, thank you.

Ответить
@artankaraj
@artankaraj - 21.08.2020 12:46

I can't get the form_procces.php if i dint pay?

Ответить
@Aziz-Ahmed-UK
@Aziz-Ahmed-UK - 13.07.2020 03:41

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

Ответить
@dustermcclean2517
@dustermcclean2517 - 30.06.2020 14:22

I can't preview PHP file in browser!

Ответить
@aimanhakim414
@aimanhakim414 - 19.06.2020 21:09

bro why my code cannot read de form_process.php? it just only go through the form.php

Ответить
@chriseguaoba5915
@chriseguaoba5915 - 14.06.2020 03:21

Thanks a lot for the tutorial it very helpful

Ответить
@funkyscoop
@funkyscoop - 13.06.2020 20:57

Does it need any database ?

Ответить
@tommy2some
@tommy2some - 11.06.2020 18:01

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.

Ответить
@garryfitzgerald2691
@garryfitzgerald2691 - 07.06.2020 22:18

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!

Ответить
@Mikey-mb6lb
@Mikey-mb6lb - 01.06.2020 21:09

It does not work for me at all. I tried four times! Nothing! Always some errors. Anyway thank you though.

Ответить
@MindsetUZ
@MindsetUZ - 01.06.2020 07:04

can anyone share this full code ? please

Ответить
@osmingerardogomez4568
@osmingerardogomez4568 - 25.05.2020 02:48

form_process .php is not linked in the description and nowhere to be found making this tutorial really difficult to follow.

Ответить
@sorayajoost
@sorayajoost - 24.05.2020 22:19

I did not know codepen, you changes my live forever!!! Thank you. Cheers

Ответить
@cheezy69
@cheezy69 - 19.05.2020 14:54

Whenever I click on submit it opens another tab and says not found

Ответить
@ramirosan
@ramirosan - 06.05.2020 04:58

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.

Ответить
@richarddotz4736
@richarddotz4736 - 26.04.2020 19:57

My submit message appears by default without anything being submitted. Can someone please help and tell me what I am doing wrong please?

Ответить
@muhammedshahabaz1963
@muhammedshahabaz1963 - 14.04.2020 08:50

how to fix this error when submitting

{"code "methodNotAllowedError", "message":POST is not allowed"}

Ответить
@itsmetitlithebutterfly9304
@itsmetitlithebutterfly9304 - 12.04.2020 21:56

very nice tutorial sir....everything is fine but i cant understand why i am not getting error messages except name

Ответить