jquery-steps icon indicating copy to clipboard operation
jquery-steps copied to clipboard

How to submit data to database through php

Open anilblogspot opened this issue 4 years ago • 1 comments

Hi Kindly help me up with the issue :

I want to submit the data from index.php file where steps wizard code is added i want to push the data to mysql database tell me how to add url of submit data or an other method to send data to mysql

anilblogspot avatar Mar 05 '20 12:03 anilblogspot

I guess you can use ajax within the onFinished attribute of the code. See here http://www.jquery-steps.com/Examples#advanced-form

var form = $("#example-form");
form.validate({
    errorPlacement: function errorPlacement(error, element) { element.before(error); },
    rules: {
        confirm: {
            equalTo: "#password"
        }
    }
});
form.children("div").steps({
    headerTag: "h3",
    bodyTag: "section",
    transitionEffect: "slideLeft",
    onStepChanging: function (event, currentIndex, newIndex)
    {
        form.validate().settings.ignore = ":disabled,:hidden";
        return form.valid();
    },
    onFinishing: function (event, currentIndex)
    {
        form.validate().settings.ignore = ":disabled";
        return form.valid();
    },
    onFinished: function (event, currentIndex)
    {
        alert("Submitted!");
    }
});

rahulkp220 avatar Apr 18 '20 21:04 rahulkp220