106
rated 0 times
[
110]
[
4]
/ answers: 1 / hits: 15500
/ 15 Years ago, wed, november 18, 2009, 12:00:00
Let's say I have this form and script:
<SCRIPT LANGUAGE=JavaScript>
function handleSubmit() {
return false;
}
function Delete(element) {
var is_confirmed = confirm(Delete this record? n + title + + date);
if (is_confirmed) {
document.getElementById(Novinky).submit();
}
}
</SCRIPT>
<form action=index.php method=post id=Novinky onsubmit=return handleSubmit();>
<input onclick=Delete(this) value=Smazat name=delete[12] type=submit />
</form>
Is there a way to get the submit button data (delete[] -> Smazat
) to the POST request?
More From » post