Button non funziona nella form

Alex_70

Utente Attivo
13 Nov 2018
371
14
18
HELL
Salve a tutti,

ho una pagina php in cui visualizzo i dati e i bottoni update e delete (che funzionano),
ho aggiunto un terzo bottone insert ma quando clicco non succede nulla


Codice:
<tr class="listheader">
<td colspan="4">
<input type="button" name="update" value="Update" onClick="setUpdateAction();" />
<input type="button" name="insert" value="Insert" onClick="setInsertAction();" />
<input type="button" name="delete" value="Delete" onClick="setDeleteAction();" />

</td>
</tr>

questo e' lo script esterno richiamato

PHP:
function setUpdateAction() {
document.frmUser.action = "edit_user.php";
document.frmUser.submit();
}
function setInsertAction() {
document.frmUser.action = "insert_user.php";
document.frmUser.submit();
}
function setDeleteAction() {
if(confirm("Are you sure want to delete these rows?")) {
document.frmUser.action = "delete_user.php";
document.frmUser.submit();
}
}

non capisco, sembra tutto ok :rolleyes:
 
per me funziona, vedi screen shot sottostante,
prova a guardare nel log di php, potrebbe esserci un errore nello script php

1590847540652.png
 

Discussioni simili