I would like to call a PHP Function in a other file than the HTML Button.
I'm stuck here
HTML File:
<form method="POST" action="../php/appl_functions.php" onsubmit="return confirm('Sind Sie sicher?');">
<button type="submit" class="btn btn-danger" name="delete">Galerie Löschen</button>
</form>
PHP File:
function deleteFotogalerie(){
db_delete_fotogalerie(getSessionValue('fotogalerie_id'));
return runTemplate("../templates/fotoalben.htm.php");
}
How can I call deleteFotogalerie() From the HTML file?!