I'm trying to have an array display information inputted from a PHP-created HTML form. I'm trying to get the entire code on to one PHP file. So far, I have:
<body>
<form action="hello.php" method="post">
<input type="text" name="input" placeholder="Number" />
<input type="submit" value="submit" onclick="go()" />
</form>
</body>
The above code is generated using "echo" in PHP (not shown).
Then for the rest of the PHP, I have:
function go() {
$variable = "input";
That is just the beginning of my code. The rest is unimportant. I know the $variable = "input"; part is wrong, but how do I get numbers to transfer over from inputted HTML to PHP? Thanks a lot!