I want to do operation to a database that is running on xampp in my index.html I have the following code
<script src="oPBD.php" async defer></script>
<h1>This is a title</h1>
<form action="opBD.php">
<input type="submit" value="Do stuff" name="Button">
</form>
And this works fine, howevewer I would like to put all the code in opBD.php in a function called function1 for say something and run in html when needed. But How I do that. I would like to use something like:
<script src="oPBD.php" async defer></script>
<h1>This is a title</h1>
<form action="opBD.funtion1().php">
<input type="submit" value="Do stuff" name="Button">
</form>
I don't find how to do this. Could you guys help me?