Why is there no variable in the php address bar returned by $ _ request?

Source: Internet
Author: User
Tags server array
{Code ...}
If ($ _ REQUEST ['Facebook _ type'] = 'Facebook ') {// pull out the facebook Photo window $ smarty-> assign ('Facebook _ type ', 'Facebook ') ;}$ $ (function () {if $ facebook_type eq 'Facebook'} openBg_login (". facebook_register_box "); // log on to the facebook pop-up window {/if}) when a user logs on to facebook, the link will appear? Facebook_type = facebook and then open the website on another computer. The address bar does not show? Facebook_type = facebook, but the window is displayed. Why is the window displayed? When no one logs on, the pop-up will not pop up. If one user logs on to facebook, the pop-up window will pop up by default when another user opens the page on another computer, why is there no facebook_type in the address bar or the smarty value assigned by entering the if statement?

Reply content:
If ($ _ REQUEST ['Facebook _ type'] = 'Facebook ') {// pull out the facebook Photo window $ smarty-> assign ('Facebook _ type ', 'Facebook ') ;}$ $ (function () {if $ facebook_type eq 'Facebook'} openBg_login (". facebook_register_box "); // log on to the facebook pop-up window {/if}) when a user logs on to facebook, the link will appear? Facebook_type = facebook and then open the website on another computer. The address bar does not show? Facebook_type = facebook, but the window is displayed. Why is the window displayed? When no one logs on, the pop-up will not pop up. If one user logs on to facebook, the pop-up window will pop up by default when another user opens the page on another computer, why is there no facebook_type in the address bar or the smarty value assigned by entering the if statement?

The variable in the address bar is get, and there is no variable in the address bar to put data packets. When payload is post, requests are connected to both get and post.

The request should be submitted in post mode. Capture the packet and you will understand it.

Check post first. If post does not contain
$ _ REQUEST is used to connect all cookies! Not only get and post

$ _ REQUEST contains $ _ GET, $ _ POST, and $ _ COOKIE arrays by default. When running as a command line, argv and argc information are not included; they exist in the $ _ SERVER array.

Let's see what type $ _ REQUEST is accepted.

This variable accepts parameters in the request, including data in get, post, and cookie. If it is a parameter in post or cookie, the URL is certainly not reflected.

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.