jquery-steps
jquery-steps copied to clipboard
How to submit data to database through php
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
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!");
}
});