Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

AJAX form submission using jQuery and PHP (part 4)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,337
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 14, 2011

Submit your forms without page refresh using jQuery's AJAX functions. This tutorial shows how to add client side validation and form submission by AJAX. We will also re-validate the submitted form on the server using a PHP script and return a success or error message to the user. Get it all done without ever having to reload or refresh the page.
In our final lesson we finish up our application by writing our server side code using PHP to process and send data back to the browser.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (wormracer08)

  • thanks dude

  • @hypaed no problem, glad you liked the video!

  • I don't suppose you know what this error could be about?

    There was an SyntaxError: Unexpected token < due to a parsererror condition.

  • @waynerogers3p Try removing the html tags in the $return['msg'] variable and just send back plain text. Looks like my example is malformed.

  • @wormracer08 Well I'm not getting the error any more, re-did it the next morning.

  • @waynerogers3p glad you got it working!

see all

All Comments (42)

Sign In or Sign Up now to post a comment!
  • I'm getting the same error as waynerogers3p...I"ve tried several contact forms and none seem to work...But great videos!

  • @waynerogers3p sounds good my friend.

  • @wormracer08 Thanks. It's fairly late here now so I'll just fix it up tomorrow. I've been trying to enforce these tutorials onto my code but in the morning I'll do the tutorials then work my code to fit. Cheers.

  • @waynerogers3p lol, thanks I appreciate that.  If you don't have any luck come post your code in the forums on my site codecompendium[dot]com and we'll get you fixed up.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more