How does php obtain the variable value of html in the same file? The code edited by zhouxicai in 2015-04-2910: 56: 49 is as follows: & lt; html & gt; & lt; head & gt; & nbsp; & lt; title & gt; configurator & lt; title & gt; & nbsp; & lt; head & gt; & l How does php obtain the variable value of html in the same file?
This post was last edited by zhouxicai on 10:56:49
The code is as follows:
Configurator
Set the attributes you want to modify:
Echo"
Test connect.
";
Echo ($ jb );
Echo ($ jb );
Echo ($ jy );
?>
An error is displayed when the index. php page is opened in the browser.
Notice: Undefined variable: jb in C: \ Program Files (x86) \ EasyPHP-DevServer-14.1VC11 \ data \ localweb \ command. php on line 32
Notice: Undefined variable: jb in C: \ Program Files (x86) \ EasyPHP-DevServer-14.1VC11 \ data \ localweb \ command. php on line 33
Notice: Undefined variable: jy in C: \ Program Files (x86) \ EasyPHP-DevServer-14.1VC11 \ data \ localweb \ command. php on line 34
How can I get the html variable value in php code?
------ Solution ----------------------
I'm afraid you should use js to obtain this. your value is dynamic, or ajax is uploaded to the php page in the background.
------ Solution ----------------------
Your code is outdated. it is an early code of php4.
To correctly execute php before php 5.3, the following settings are required:
Register_globals = on
Error_reporting = E_ALL &~ E_NOTICE
Php5.4 cancels the register_globals switch and your code cannot be correctly run without modification.
If you do not want to modify the php. ini file or the original code
At least add the following code at the beginning of the program
error_reporting(E_ALL ^ E_NOTICE);
extract($_GET);