I have a php variable called $myVar = “6542”;
Where can I echo it before the </head> tag of my site (and not trigger any html issues) in order to be able to pick the value up with javascript?
Ty
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Throw it above your tag somewhere. Simple.
It can be put anywhere on the page, not necessarily needing to be above