An error occurred when using variables in html code. Could you please kindly advise? could you tell me how the second input does not show the value? Thank you.
$ Urlfrom = $ _ SERVER ['http _ referer'];
?>
Reply to discussion (solution)
HTTP_REFERER does not always exist.
Just print it out.
I used other domain names for hyper-connection during the test. However
Urlfrom can get the value, while
Input is not displayed
HTTP Referer is a part of the header. when a browser sends a request to a web server, it usually carries a Referer to tell the server which page the link is from, the server obtains some information for processing.
We can see that:
1. if it is not a link, no
2. although it is generally carried, it can also be left blank
HTTP Referer is a part of the header. when a browser sends a request to a web server, it usually carries a Referer to tell the server which page the link is from, the server obtains some information for processing.
We can see that:
1. if it is not a link, no
2. although it is generally carried, it can also be left blank
Rising posture
Var_dump ($ urlfrom); check it out.
The idea above is correct.
I should simplify the problem to solve my problem: the input does not display the value of $ urlfrom. please advise.
$ Urlfrom = "bbbb ";
?>