I want to echo a javascript mobile device redirection to the mobile site.
But I have to give an \'id\' with the redirect link. This is my code as of now:
<
JS and PHP are two different animals and they do not mix together the way you are using those presently, which explains the syntax errors you are getting, because you are declaring what PHP thinks are constants.
What you need to do is to seperate those.
First, the JS/HTML: