don´t recognize variable of php

前端 未结 2 542
死守一世寂寞
死守一世寂寞 2021-01-29 16:38

I have the following code in two files separately

file one.php



Age:
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-29 16:59

    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:

    
    
    
    
    
    

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

提交回复
热议问题