0
Is there any way to detect in php which Submit button was sent? To create a function, if one is clicked run one, if the other runs the other function?
<form method="post" action="" enctype="multipart/form-data">
<input type="submit" name="F1" value="atualizar">
<input type="submit" name="F2" value="deletar">
</form>
And if you put both buttons with same
name
, it would not be enough to make$_POST['<nome>']
?– Woss