0

Ok so I found this multi page form made with javascript here http://xoxco.com/projects/code/multipage/. It's the best thing I found since I'm not experienced with javascript but now my problem is how do I take the submit button and link that to a php file to process the request?

<script type="text/javascript">
    $(window).ready(function() {
        $('#multipage').multipage();
        $('form').submit(function(){
            alert("Submitted!");
            return false;
        });
    });
</script>

That's the script file for the html. Like where would I put the method?

Also, is there anyway to make it so when I have a email field, for the javascript to validate it since html5 can't.

1

1 Answer 1

0

You can do an ajax call to your php script. Here probably you will use a POST request since you might want to store the form info into your database. In HTML5, if your input type is email, then it will be automatically validated. Look here for more info.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.