index.php
Código PHP:
<body>
<?php
include('functions/functions.php');
?>
<form name="add_mark" method="post" action="<?php add_mark();?>">
<label>Name:</label><input type="text" name="name" />
<input type="submit" value="Enviar" name="send" />
</form>
</body>
Código PHP:
<?php
include('../connection/config.php');
function add_mark(){
$name=$_POST['name'];
echo "dentro de la funcion";
}
?>