Help ATS with a contribution via PayPal:
learn more

Jquery help please! Testing alert from form nothing happens

page: 1
1

log in

join

posted on Nov, 2 2012 @ 07:40 PM
link   
Hello ATS,
I am a JQuery nube, but I have caught on quickly, and I am making crazy moving things everywhere-I love it.

How ever I cannot get this code to work right. I have tried it on 2 different server with no luck. This page calls the test.php page here is my code:


$(document).ready(function() {
$("#testform").submit(function() {
$.post( "test.php",
$("#testform").serialize(),
function(data) {
data);
}
);
return false;
});
});


My PHP code is:





My HTML is:



Email:

First Name:




Well as Much HTML as ATS will allow to show you.
Any help would be appreciated!




posted on Nov, 2 2012 @ 07:52 PM
link   
Is it nput or input?
IDK for the rest, it's pretty messed up
Try this... Link
edit on 2-11-2012 by zilebeliveunknown because: (no reason given)



posted on Nov, 2 2012 @ 07:53 PM
link   

Originally posted by zilebeliveunknown
Is it nput or input?
IDK for the rest, it's pretty messed up

ATS won't let you type in a form tag: here is a screenshot:



posted on Nov, 2 2012 @ 08:07 PM
link   
Do you want the form to submit?

Remove the return false.
edit on 2-11-2012 by Epirus because: (no reason given)



posted on Nov, 2 2012 @ 08:30 PM
link   

Originally posted by Epirus
Do you want the form to submit?

Remove the return false.
edit on 2-11-2012 by Epirus because: (no reason given)

I tried that but nothing happens.



posted on Nov, 2 2012 @ 08:40 PM
link   

Originally posted by samlf3rd

Originally posted by Epirus
Do you want the form to submit?

Remove the return false.
edit on 2-11-2012 by Epirus because: (no reason given)

I tried that but nothing happens.


Check the error console in your browser...if there are any syntax errors in your JS they'll be there.






top topics
 
1

log in

join