Php-php Tutorial

Source: Internet
Author: User
For the php value passing problem, I have a page with two parts: two php files and one is. php is B. php, now. php has a link & lt; ahref & quot; B. php? & Quot; & gt ;. $ table [$ I] [& quot; title & quot;]. & lt; a & gt; In B. in php, I use $ id php to pass the value.
I have a page with two php files, one being a. php and the other being B. php. now there is a link in a. php.
'. $ Table [$ I] ["title"].'
In B. in php, I use $ id = $ _ GET ["id"]; to accept it, but $ id does not GET the value. B has a value in the address bar of the page. php? Id = xxx

------ Solution --------------------
Echo ''. $ table [$ I] [" title "].'';
------ Solution --------------------
Since you can be sure that the address bar has a value, it should not be possible to see what you said.
------ Solution --------------------
Echo ''. $ table [$ I] [" title "].'';
?>
If the html format in php is echo ''. $ table [$ I] [" title "].'', the format is similar to the following: ">
------ Solution --------------------
Is your $ _ GET not set. No automatically received parameters are displayed in php. ini.
------ Solution --------------------
Enter a connection by yourself... Check whether there is any output on page B. If not, it may be your pseudo-static problem. Paste it to see
------ Solution --------------------
$ _ REQUEST ["id"];
------ Solution --------------------
Use the header ('Location: index. php') for page jump.

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.