Can anyone help me make this work? I am very very new to PHP and I was just trying to create a single file thing which asks for a name and returns it. Can anyone help see where I am going wrong? I am testing it on wtools.io Thanks in advance for any help :)
<form method="POST" action="formFunction()" name="form1">
Name: <input type="text" name="name">
<input name="s1" value="Submit LoL !" type="submit">
</form>
<?php
function formFunction() {
$name = $_POST['name'];
echo $name;
}```