mardi 14 avril 2015

PHP multiple forms resubmission avoidance

I've multiple forms to navigate from starting form to final, I've NEXT and BACK buttons in each form in order to go forward and backward. What I want is to avoid confirmation of resubmission of form (Confirm Form Resubmission) ad my forms are using PHP Sessions and GET/POST values.


What is the best approch to avaoid this according to my current scenario?


I've a couple of things that are same over all in all forms



<input type="submit" name="PreviousSubmit" value="<<" class="submit_button" id="PrevSubmit">


and form name: name="myform"


The Jquery onclick action,



jQuery(function () {


// Back button
$("#PrevSubmit").click(function () {
history.go(-1);
return false;
});
});


What is the best approach in order to get the previous page without the confirmation of resubmission.


Aucun commentaire:

Enregistrer un commentaire