don´t recognize variable of php

It’s not recognized because you don’t create it. Variables don’t magically appear in PHP1. You need to get that value from the $_POST superglobal:

   $age = $_POST['age'];
   print ("The age is: $age");

1 Anymore. They used to when register_globals existed. But that has been obsolete since long before you started coding.

Browse More Popular Posts

Leave a Comment