This is a bit of a mixed question. I have a line that adds a delete button to a form and I have an onClick procedure that confirms if the user wants to delete an article, how can I use PHP to code a statement so if they click OK it deletes the article from the database? Or have it link to a page like events.php?do=delete or call a function? Or do I absolutely have to use javascript? Here's my code:
$delbutton = '<input type="submit" value="Delete" name="delete"%s>';
$jsconfirm = ' onclick="return confirm(\'' . $LANG01[39] . '\');"';
sprintf ($delbutton, $jsconfirm);