Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onsubmit function doesn't send the form's data to another page #57

Open
seth1980 opened this issue Apr 15, 2015 · 2 comments
Open

Onsubmit function doesn't send the form's data to another page #57

seth1980 opened this issue Apr 15, 2015 · 2 comments

Comments

@seth1980
Copy link

This is my first attempt to use the ideal form and i am facing a problem with the onsubmit function.
While it works as supposed to when there is an invalid field, the problem appears when all data is correct and i want to send the data to a page called new_ama.php.
The code is:
onSubmit: function(invalid, e) {
e.preventDefault();
if (invalid) {
alert(invalid +' fields!');
} else {
$.post('new_ama.php');
}
}

What am i doing wrong????

@KosDav
Copy link

KosDav commented Feb 12, 2017

I am having the same issue, what was the solution?

@herculesalex
Copy link

mesmo problema solução?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants