2

I would like to learn how these websites are validating data with PHP. For instance you go to facebooks page and view the source code there is no form action supplied. Ok I understand they are using Javascript in some manner to post data towards PHP but can I do something similar with jquery? Are the submit() and Post() functions that I should learn in depth to achieve the results. Could some one shed some light how these websites are doing all this or is it just Ajax? Thanks help is much appreciated and if there is some tutorial you would recommend please do tell!

asked May 7, 2011 at 22:52
1

3 Answers 3

1

To answer your title issue, an easy way to post forms with ajax is the form plugin:

http://jquery.malsup.com/form/

It's veery easy to use. Just do:

 $(document).ready(function() { 
 $('form').ajaxForm(function() { 
 alert("Your form has been submitted!!"); //Put your logic here
 }); 
 });

Hope this helps. Cheers

answered May 7, 2011 at 22:56
Sign up to request clarification or add additional context in comments.

Comments

0

If you want to know what http requests are being made on submits or javascript calls etc - install some packet sniffing software. Like Fiddler or Wireshark.

Fiddler is a Web Debugging Proxy which logs all HTTP(S) traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP(S) traffic, set breakpoints, and "fiddle" with incoming or outgoing data

answered May 7, 2011 at 22:55

Comments

0

Yes, it's AJAX.

Yes, you should look up .post.

answered May 7, 2011 at 23:00

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.