How does php obtain the variable value of html in the same file?

Source: Internet
Author: User
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);


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.