I know you can\'t directly use PHP variables inside javascript code, but is there a way around it? I need to use these parameter\'s in javascript:
username: \'&l
You can assign that php value in any html object then you use the object value in js page
for example
PHP:
$phpvalue = $_GET["sid"];
HTML:
JS:
var phpval = document.getElementById('txtsamp').value;