I'm trying to put two submit buttons into one form, one button will update a record and another button will delete it.
<form>
<input type="submit" value="UPDATE"/>
<input type="submit" value="DELETE/>
</form>
How these should be handled in php? What's the best way to do it?