[Solved] don´t recognize variable of php


Your trying to access the value of age from a page( dos.php) but you posting it to (two.php) and your missing $_POST[‘age’].

one.php

<HTML>
<BODY>
<FORM ACTION="two.php" METHOD="POST">
Age: <INPUT TYPE="text" NAME="age">
<INPUT TYPE="submit" VALUE="OK">
</FORM>
</BODY>
</HTML>

two.php

<HTML>
<BODY>
<?PHP
$age = $_POST['age'];
print ("The age is: $age");
?>
</BODY>
</HTML>

0

solved don´t recognize variable of php