Skip to content

How do I simply continue to PHP processing #65

@baroche

Description

@baroche

Please I have some PHP code that checks the form on the back end. I would simply like ideal forms to check the client side and then allow PHP processing. The code below checks for invalid data but when all fields are valid, nothing happens when I click the submit button. Question is. What do I put in the else { } condition to make it continue to PHP processing. My PHP code works perfectly without the idealforms check, but it would be nice to have the jquery checks on the front end. Please help - I don't know any Jquery.

$("form").idealforms({
onSubmit: function(e, t) {
t.preventDefault();
if (e) {
var n = $("form").children(".invalid").offset().top;
$("html, body").animate({
scrollTop: n - 200
}, 1e3)
} else { }
}
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions