Contact Form Web Application Tutorial Ajax HTML5 PHP

Поділитися
Вставка
  • Опубліковано 3 жов 2024

КОМЕНТАРІ • 267

  • @enriquebdfx
    @enriquebdfx 8 років тому +1

    Thanks for investing your time in this vids men, regards from Venezuela!

  • @Timespider
    @Timespider 8 років тому +3

    Fantastic as usual. Followed you for years down here in NZ. Your videos are like unwrapping a present at Christmas, can't wait to see what goodies are inside.

  • @محمدابراهيم-ظ2ض
    @محمدابراهيم-ظ2ض 8 років тому +2

    many thanks.
    i wait notification about :
    MVC tutorials BY Adam Khoury
    :)

  • @GeorgeLathem
    @GeorgeLathem 7 років тому +4

    Finally a simple and to the point tutorial. I fucking love you! Liked and Subscribed

  • @MRMOTOFOTO
    @MRMOTOFOTO 8 років тому +2

    I can't thank you enough.....I've learned more from you than Anything out there.

    • @AdamKhoury
      @AdamKhoury  8 років тому

      Glad you find it useful. Thanks for the feedback.

  • @stephenbradbury2347
    @stephenbradbury2347 6 років тому +1

    I know this tutorial is over 2 years old now but I have just used it on my website, it works as it should.
    Thank you very much.
    Subscribed.

  • @richardrichardson5745
    @richardrichardson5745 8 років тому

    Thanks for this tutorial.
    This looks like it will be more convenient than sending the viewer to a separate page.
    I will be doing this for my future websites.

  • @ChimobiHD
    @ChimobiHD 8 років тому +3

    The dude is back! Thanks for all the good work Adam

  • @BOER1717
    @BOER1717 8 років тому +1

    Yay, you're back!!!! Awesome as always Adam, keep up the good work ✌🏻️

    • @AdamKhoury
      @AdamKhoury  8 років тому +2

      Thank you sir. It's good to be back in action.

  • @minakirellos9089
    @minakirellos9089 8 років тому +1

    Keep it up man! I have learned a lot from your tutorials
    Thanks

  • @lojose1000
    @lojose1000 8 років тому +1

    very nice tutorial, and thanks for share, nice to have u back

  • @vonstormfilms
    @vonstormfilms 8 років тому +1

    Love your content, Adam. Thanks a ton.

  • @madpeach_
    @madpeach_ 5 років тому

    Thanks a lot. Was scared of dealing with backend languages but thanks to you now i see a whole new world of possibilities!

  • @joannasmith2133
    @joannasmith2133 5 років тому

    Brilliant tutorial! I'm a beginner coder and your tutorials are such a huge help: informative, clear and to the point. Thank you!

  • @Timespider
    @Timespider 5 років тому

    I needed a refresh.
    Been missing your tutorials and humor AK, can't wait till your back.
    Your the best teacher!

  • @kamaboko1
    @kamaboko1 8 років тому +1

    Nice to see you back

  • @bongloads420thc
    @bongloads420thc 7 років тому

    The best tutorial I've seen on this topic. Subscribed.

  • @CarliBotes
    @CarliBotes 8 років тому +1

    Love your tutorials! Thank you :D

  • @4loverhyme
    @4loverhyme 5 років тому +1

    ... it's working for me, great job, and thanks for saving me lots of time in having to write the code, thanks again!

  • @math487
    @math487 8 років тому +1

    great video once again thank you very much

  • @felixmoshami17
    @felixmoshami17 7 років тому +2

    you have great tutorial man i just like your tuts thank you for sharing your knowledge

  • @gtaagent
    @gtaagent 7 років тому

    Well done. Very simple and explained perfectly. It's important to note for people having problems it's paramount that the .php file be referenced exactly the same in your javascript because once the user submits the form the target is that file, the rest is effortless.

  • @floris812
    @floris812 7 років тому +2

    Wow you're a good teacher!

  • @ravgeetdhillon2990
    @ravgeetdhillon2990 5 років тому +2

    That's exactly what I was looking for.

    • @vincentthiago9526
      @vincentthiago9526 3 роки тому

      I guess it's kinda randomly asking but do anyone know a good site to stream newly released movies online ?

    • @piercejonah6289
      @piercejonah6289 3 роки тому

      @Vincent Thiago Try flixzone. Just google for it :)

    • @kamdenstanley1449
      @kamdenstanley1449 3 роки тому

      @Vincent Thiago I use flixzone. You can find it by googling :)

  • @AlisTDK
    @AlisTDK 8 років тому

    saludos amigo! gracias por tus tutoriales, me ayudan mucho! thanks for your help friend!

  • @hugoalvarez3226
    @hugoalvarez3226 6 років тому

    Thanks for the example and mostly for the code, I was really spinning around with the serialize of php which didn't worked for me in hours. Just downloaded and customized your code and its all working fine. Thanks!

  • @kevinwiens4804
    @kevinwiens4804 8 років тому +1

    Sweet.....Adam!!

  • @labradorsolutions
    @labradorsolutions 8 років тому +1

    You are an UNBELIEVABLE teacher! Thank you for this video!
    I am curious how I take this and "connect" it to my Google or Mailgun SMTP?

  • @kevinwiens4804
    @kevinwiens4804 8 років тому

    This is Really Good Stuff Adam..

  • @moehammoud1
    @moehammoud1 6 років тому

    Great tutorial. Exactly what I wanted/needed. Thanks, mate. Keep up the good work.

  • @LarsVollaers
    @LarsVollaers 8 років тому +1

    Thanks alot, I was looking for this!

    • @AdamKhoury
      @AdamKhoury  8 років тому

      Thanks for the feedback Lars.

    • @LarsVollaers
      @LarsVollaers 8 років тому

      I was wondering if you could make a lesson that inserts data to the database with ajax of course. Let's say for example a comment system.

    • @BOER1717
      @BOER1717 8 років тому +1

      Check out his "Social Media' series, he has all that in there with AJAx

  • @WOXZE
    @WOXZE 8 років тому

    Thank you very much sir. That was awesome!

  • @kishandave722
    @kishandave722 8 років тому +1

    very nice video Thanks bro

  • @yakut54
    @yakut54 8 років тому

    ёмко и содержательно. спасибо, чувак! =)

  • @miguiaculiacan
    @miguiaculiacan 8 років тому +1

    thanks Adam !

  • @yndev
    @yndev 7 років тому

    Still works in 2017. Thanks for this!

    • @yndev
      @yndev 7 років тому

      Nah, I followed the video exactly and it worked. The issue could be your with your host possibly?

    • @makemoneyrelax
      @makemoneyrelax 7 років тому

      yes it works on mine.....you need to use it on real server....maybe on local host it will not work for some reason....which is understandable....

  • @emanuelolsson7169
    @emanuelolsson7169 7 років тому

    Thank you, really nice. As for Wordpress users or others that experience the "Please wait..."-issue - it is because your parser.php cannot be found. If you are using wordpress you'll need to include it in for example your functions.php. I found this out using the inspector, use to see where the errors occur and why.

  • @neukekeuke9287
    @neukekeuke9287 8 років тому

    Man it works perfect! THX a lot

  • @ClawHammer23
    @ClawHammer23 8 років тому

    Thanks for share Adam

  • @ShapeoneCoIl
    @ShapeoneCoIl 7 років тому

    Just what i was looking for - thank you so much

  • @NoahNobody
    @NoahNobody 8 років тому +1

    Hi Adam, I was browsing your site and noticed there wasn't any content about web security. I would like to express my interest in this field and request some practical tutorials about it. For example, XSS, XSRF, and anything using Ajax that might compromise a database.
    Thanks.

  • @martincool7333
    @martincool7333 7 років тому

    Hi Adam the problem is you make it look so simple. Thanks for the tutorial

  • @IrfaanHassanDiamonds45
    @IrfaanHassanDiamonds45 7 років тому

    Hi Mr Adam Khoury.. and how you doin mahn??!?
    I had to pause the video!! fucking love your work!! love how real you are about coding and programming, ive been watching your vids and you make me feel like ive been programming for years already.. you know when to elaborate what is a built in function of php and what is not built in, love that, doesnt leave me guessing what needs to be instantiated or not.. Keep up the awesome work! and May The Almighty bless you and those you love and care for in this world and the world after.aameen.

  • @muhammadshahryarazhar2571
    @muhammadshahryarazhar2571 6 років тому

    Great!!!
    Thanks for the video man!
    Really appreciate it!!!

  • @Peternakkece
    @Peternakkece 8 років тому

    thankyou for the tutorial sir

  • @murtuzaali
    @murtuzaali 8 років тому

    i love u boss thank you sir u help me a lot thanksss

  • @AdamKhoury
    @AdamKhoury  8 років тому +1

    Research the terms Cross-site Scripting (XSS) and Cross-Site Request Forgeries (CSRF) attacks in a search engine to find numerous methods to defend your forms against spam and automated attacks from malicious third party servers.

  • @sohampatel6916
    @sohampatel6916 6 років тому

    that was very easy. and you did good putting your code for us to copy. great

    • @nksprashant
      @nksprashant 6 років тому

      www.developphp.com/video/JavaScript/Contact-Form-Web-Application-Tutorial-Ajax-HTML5-PHP

  • @ak-loz
    @ak-loz 6 років тому

    This works wonderfully!

  • @janoytechwizz3874
    @janoytechwizz3874 5 років тому

    Thank you, i may now optimize my website.

  • @sabiruli
    @sabiruli 6 років тому

    Thanks a lot for valuable tutorial.

  • @alaadinshexahmedbarznji7911
    @alaadinshexahmedbarznji7911 8 років тому

    very good well done

  • @kppavu8809
    @kppavu8809 6 років тому +1

    awesome man thank you so much

  • @radhakrishnankp8592
    @radhakrishnankp8592 8 років тому +1

    Nice...

  • @tiagomartinho77
    @tiagomartinho77 5 років тому

    thank you, it was very helpful, already up and running, i only added a subject placeholder. Only problem i have to sort is the language, in portuguese we have "ç" and "ã" and come all wrong. Great job, keep it coming and thank you for sharing

  • @andrewvalenzuela1790
    @andrewvalenzuela1790 7 років тому

    Thank you, that was really helpful

  • @BreakthroughGolf
    @BreakthroughGolf 8 років тому

    Thank you so much! Everything worked great, except the "please wait" message and nothing is arriving in email.

  • @royalkinguniverse
    @royalkinguniverse 6 років тому +3

    im so dissapointed i did everything u said and it does not work??? uploaded it to the server it says thanx for sending an email but it doesnt send an email?

  • @Dexter101x
    @Dexter101x 7 років тому

    My php script is a little bit more complicated than yours Adam, but I always couldn't do the response message when people have sent the message and also, the HTML email. Thanks

  • @Vexxlol
    @Vexxlol 7 років тому +3

    Not working, It just says Please Wait...... And never sends and i have a domain email

    • @Vexxlol
      @Vexxlol 7 років тому +1

      Righty'o Ill go check it out

  • @nicknoop
    @nicknoop 6 років тому

    Thanks Adam, much appreciated!
    If anyone else interested in adding a honeypot to this, here below are some slight additions/amendments made. This worked for me in terms of the form not sending. I have been scratching my head to add a 'false' success message, but failed so far...!
    In form, add this line:
    If you're human, leave this empty:
    In script, add this:
    formdata.append( "hon-url", _("hon-url").value );
    In css, hide the line in the form:
    .antispam {display: none;}
    In php, add this:
    if( isset($_POST['n']) && isset($_POST['e']) && isset($_POST['m']) && isset($_POST['hon-url']) && $_POST['hon-url'] == ' ' ) {....here goes the rest.....}

  • @NikhilPatil647
    @NikhilPatil647 6 років тому

    Thank you very much for Code :

  • @houssameddine6105
    @houssameddine6105 8 років тому

    great video... i have a question : why did you use iso as an unicode why did you not use utf-8

  • @cyrusbfbulan6573
    @cyrusbfbulan6573 5 років тому +2

    sir Adam I've only confirming that the message was sent but their is no message at my inbox(the recipient) ..please help

  • @Trident007
    @Trident007 8 років тому

    great video thank you! is there a video out there the shows how to add spam filters to one of these contact forms?

  • @realist8774
    @realist8774 8 років тому

    Great tutorial! Could you make a sequel to this one teaching folks how to protect this wonderful form from spam (like recaptcha)?

  • @GracieDFC
    @GracieDFC 7 років тому +1

    Hi Adam, my email is not sending and form says please wait but nothing happens. any ideas? thanks.

  • @julianvarga
    @julianvarga 8 років тому

    Thank you for this simple tutorial. I've been trying to do this for almost a year and I was finally able to do it because of you. I'm a fan now. Question, is this form safe from hackers? I've seen other tutorials in which they add a "human" component in which they have to answer a simple question in order for the form to be accepted. If not, is this hard to do?

  • @matthijs162
    @matthijs162 8 років тому +1

    Hey Adam, This form works perfectly, except for the receiving part. Whenever I sumbit,
    the email is sended to my spam folder, how can i let it go into the regular inbox folder?
    Kind regards

    • @AdamKhoury
      @AdamKhoury  8 років тому

      Maybe because your email checking application's spam filtering settings are high and you only allow trusted white-listed entities land in the inbox. You could try changing the $from variable to use an email address tied to your hosting account that is sending the email, instead of the user's $e variable. I am not sure really.

  • @escapecs9498
    @escapecs9498 5 років тому +2

    Mine just says please wait... and it stops there it does not redirect me to " your message has been sent" any tips?

  • @jamiebrunson7584
    @jamiebrunson7584 7 років тому +2

    Great tutorial, however, I am having a bit of an issue. When I upload and run the contact script, the form stays on the page, the page will refresh and send me back to the top and it appends all the data I entered to the end of the domain name in the address bar above. Any thoughts sir?
    Just to update, im getting this Error now:
    [19-Nov-2016 15:55:39] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/54/usr/lib64/php/modules/imagick.so' - /usr/php/54/usr/lib64/php/modules/imagick.so: undefined symbol: zend_new_interned_string in Unknown on line 0

  • @souviknag
    @souviknag 8 років тому +1

    Firstly, your videos are very helpful. Thank you very much. Could you please tell, if we can call multiple jquery/javascript functions onsubmit event?

    • @AdamKhoury
      @AdamKhoury  8 років тому +2

      OR
      Maybe you can execute those other functions from inside of the submitForm() function.

    • @projectstarhubcitylive4473
      @projectstarhubcitylive4473 8 років тому

      osm .. you are great .but how you learn this hard Java Script ?

    • @souviknag
      @souviknag 8 років тому

      Thanks for the reply. I was watching your videos relating OOP lately. I was wondering if you could please make a series of basic OOP related videos. Or if I have missed them, would you please tell me where to find them? Once again, thank you very much for the tutorials. They're very helpful.

  • @stephanstanisic2007
    @stephanstanisic2007 8 років тому

    You should have added a else in the isset of the parser, to tell the user that ons of the fields is empty if they are using a browser that does not understand the required inputs (like iOS' safari). But nice script!

  • @lisawoodson9511
    @lisawoodson9511 8 років тому +2

    Do you know how to configure XAMPP so that I don't get this error? ...
    Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\1ContactFormWebApplicationAjaxHtml5Php\example_parser.php on line 13
    The server failed to send the message. Please try again later.

  • @aswanigupta
    @aswanigupta 6 років тому

    Thank you so much for this video. I visited your website where i have seen some social icons on the left side of your page . if Possible then please make a video for making that

  • @thehangman1517
    @thehangman1517 2 роки тому +1

    Hello, how does this send the email?
    How does this work, can you explain this?

  • @Oscar-mp6hw
    @Oscar-mp6hw 8 років тому

    I quadrupled check my code and its identical to yours except for the form fields and it is not working. For some weird reason it is acting as it's method is "GET" (showing the information on the browsers address bar). I made sure it was "POST" but nothing.
    Do you have any idea what could be wrong?

  • @yutu49
    @yutu49 7 років тому +1

    Doesn't work. I copied your html, JavaScript, and php code exactly form your developphp page and put the codes in their respective pages. The php page was named exactly as yours.
    I entered the information into he fields properly and hit submit. all that happened was that the php code was displayed directly under the form.

    • @General_Aladeen
      @General_Aladeen 7 років тому +1

      learn how to debug man. look in the developer console if you've javascript errors.

  • @pigpen12345
    @pigpen12345 7 років тому

    Browser discrepancies
    Okay, I get the success message in safari "thanks (name) your message has been sent", but in chrome or firefox, I just stays on "please wait". I do get the email on all browsers though.
    How do I fix this?

  • @sukronjazuli
    @sukronjazuli 5 років тому +1

    my message no show in email, only information has been sent.... , why sir... please help ..thank so much

  • @webnguitarsadf9513
    @webnguitarsadf9513 8 років тому

    great

  • @kyleparsotan6799
    @kyleparsotan6799 4 роки тому +1

    Do we need a sql and php to get the data saved and see who is what?

  • @peterscott9520
    @peterscott9520 2 роки тому

    Hi Adam, Thanks for your excellent tutorial, which I used to create a nice contact form. I have a question: Would it be possible to use PHP's output buffer with a callback function to collect form data instead of using AJAX? Thanks in advance for any thoughts...
    -- Peter

  • @kayodelawal7703
    @kayodelawal7703 7 років тому

    Hey there Adam thanks for this tutorial but, when i upload the form to my site, and fill it out the page just refreshes. and no email set out

  • @atypical_blk_guy
    @atypical_blk_guy 8 років тому

    Hey I'm getting an error message in the console saying submitForm is not defined even though I got the same code to work for another website I'm working on. Any ideas why it would work for one site but not the other? I also tried copying and pasting the sample code and I still get the same message.

  • @rajeshsahu605
    @rajeshsahu605 7 років тому

    sir i know only html and css can i go for this tutorial?????
    plase uploaded the html5 and css3 tutorial so that its very easy to getting php and javascript

  • @sksarifulislam2753
    @sksarifulislam2753 7 років тому

    Hello Sir
    I am beginner of website design and developing process through youtube specially ur all content even HTML video control. I was completed all design with HTML&CSS&JS, as well as login and sing up page with PHP& Mysql database as u providing to video. But could find out how to connect both PHP script and index.html main file together in hostgator hosting service mysql database.
    Thank You

  • @billbyrd9845
    @billbyrd9845 4 роки тому

    It was working fine for me. Thank you for that. But then... it quit working and stalls with "Please wait..." Any ideas?

  • @General_Aladeen
    @General_Aladeen 8 років тому +1

    Thank you Adam. When are you gonna teach Laravel? :-)

    • @AdamKhoury
      @AdamKhoury  8 років тому +2

      You're welcome. Probably never going to teach Laravel because I don't use it in my professional work life.

    • @General_Aladeen
      @General_Aladeen 8 років тому

      Yep, I understand. I've learned a lot from you.

    • @masreshayayeh1082
      @masreshayayeh1082 8 років тому

      what about codeigniter

  • @jamesbarratt593
    @jamesbarratt593 7 років тому

    Need form submitted message on screen of form which is whole reason for using ajax. I have a form using jquery validate, and jquery holds submit button until validation passes. Then with submit free it posts to php and php opens new window to display sent message. I want to have this message on the same page as the form.

  • @Xaidinatorx2000X
    @Xaidinatorx2000X 8 років тому

    Can you make a video on how to make a website where you can make a admin account where you can upload, title and add a description and allow people to make user accounts to comment and like ? If so that would be awesome

  • @Stephen-st1pi
    @Stephen-st1pi 8 років тому

    Dear Adam,
    I uploaded your files almost as is, on the website. The only change I made was to my email address. After clicking on "Submit", the message thanked my name, but I did not receive the email at all. I have checked my spam mail as well. Please advise, if possible.
    Stephen.

  • @rahulagarwal968
    @rahulagarwal968 8 років тому

    Hello , can you please tell me how to add " Refer and earn" feature in a website using php mysql ?

  • @jsphpndr
    @jsphpndr 7 років тому

    This was a great tutorial. I have yet to really follow up with PHP, but this was simple enough. I'll use your site references to work on the security. Other than that, everything works great. Could this work with PHPMailer?

  • @tallitvak1149
    @tallitvak1149 5 років тому

    thank you!!!!

  • @andrewrico8321
    @andrewrico8321 7 років тому +2

    not working.....it says "please wait" after submit it and then nothing happend.

    • @yoyoking132
      @yoyoking132 7 років тому

      me too, did you end up getting it to work?

    • @andrewrico8321
      @andrewrico8321 7 років тому

      i didnt, try:
      formspree.io/

    • @M9Diry
      @M9Diry 6 років тому

      Me too then I checked the and found that because I changed the name example_parser.php to something but hadn't changed the reference in the script. Bang.

  • @telset101
    @telset101 8 років тому

    Does this validate the email the user inputted?

  • @masreshayayeh1082
    @masreshayayeh1082 8 років тому +1

    I JUST TRY BUT I GOT :- Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\CONTACT_FORM\example_parser.php on line 34
    The server failed to send the message. Please try again later.

  • @peterscott9520
    @peterscott9520 7 років тому

    Dear Adam,
    Thanks so much for your excellent tutorial. Your script works flawlessly. However I'm having trouble adding a checkbox input and having it recognized. It's always either checked or unchecked, depending only on its initial value, and does not respond to user input. Any hints?
    -- Peter

    • @peterscott9520
      @peterscott9520 7 років тому +1

      Oh, I solved this problem, just substituting ".checked" for ".value" in the formdata.append code for the checkbox.
      -- Peter

    • @bostonweddingbandmib
      @bostonweddingbandmib 7 років тому

      I replaced value with checked. kinda works. In my email box I get =true or =false. is there a better way?

  • @brovayurbee
    @brovayurbee 7 років тому

    I have a few radio buttons and phone number section added in code. If I wanted to display the number I would have to add in my php section.