There is a problem with using variables in the HTML code. Request advice, thank you.

Source: Internet
Author: User
Friends, help me to see this code how the second input does not show the value? Thank you

$urlfrom =$_server[' Http_referer '];

?>





Reply to discussion (solution)

Http_referer doesn't always exist.

Print it out, you know.

I use the other domain name to connect over the time of the test. But
Urlfrom can fetch a value, and
Input doesn't show.

HTTP Referer is part of the header, and when the browser sends a request to the Web server, it usually takes referer to tell the server which page link I took from, and the server can get some information for processing.

Can be seen
1, if not the link, there is no
2, although the general will take, but also can not take

HTTP Referer is part of the header, and when the browser sends a request to the Web server, it usually takes referer to tell the server which page link I took from, and the server can get some information for processing.

Can be seen
1, if not the link, there is no
2, although the general will take, but also can not take




Up the pose.

Var_dump ($urlfrom); Look

The ideas upstairs are right.
I should simplify the problem so that I can really solve my problem: input does not show $urlfrom value, please advise.

$urlfrom = "BBBB";

?>




  • 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.