I have 2 files. I'm trying to get the POST from one file to another, yet it's showing up as null for some reason. Please take a look:
testx1.php
<?php
echo "<form method = 'post' action = 'testx2.php'>";
echo "<input type = 'number' name = 'number'>";
echo "<input type = 'submit'>";
echo "</form>";
?>
testx2.php
<?php
$number = $_POST['number'];
echo $number;
?>
Expected output:
123
Actual output:
No output
Also, this shown up in the link for some reason:
/testx2.php?number=123