я подтверждаю возврат в методе post action. Код работает, но мне нужно сфокусироваться на отмене, когда придет подтверждение. Но всегда хорошо сосредоточен. Как я решаю эту проблему
мой код ниже..
*
<script type="text/javascript">
function confirmation() {
var consumption = document.getElementById("consumption").value;
var texthere1 = document.getElementById("texthere1").value;
var line = document.getElementById("texthere").value;
return confirm("You are about to issue Material <?php echo ltrim($data , "0") ; ?> from 2100/<?php echo ($data2 ) ; ?> To a Dying STO " + texthere1 + " At line " + line + " of " + consumption + " KG. Are You Sure ?") ;
return false;
}
</script>
<form action="a.php" method="post">
<input name="Submit" type="submit" value="Submit" onclick="return confirmation()">
</form>
*