I have problems posting my form when I redirect with javascript. After I submitted my form the first time, you can choose to submit again, this will redirect you to the same form as before with the script below:
<script>
$(function() {
$("#dialog").dialog({
modal: true,
resizable: false,
buttons: {
"Yes": function() {
var type = '<?php echo $type; ?>';
window.location.href="kit.php?type=<?php echo $type; ?>";
},
"No": function() {
$(this).dialog("close");
}
}
});
});
</script>
This is the form:
<form action="kitsubmit.php" method="post" name="complete">
This is the page of my form:
localhost/Extracert/kit.php?type=AbELISA
After submit, i get redirected to this:
localhost/Extracert/kit.php?type=AbELISA#/Extracert/kitsubmit.php
But should be be:
localhost/Extracert/kitsubmit.php
I am new to this, so I don't know how to solve it...