"; var fb_mail = "=$_SESSION['facebo...">
I have the following code in jquery:
var user_id = "<?=$_SESSION['user_id'];?>"; var fb_mail = "<?=$_SESSION['facebook_mail'];?>"; var google_mail = "<?=$_SESSION['google_mail'];?>";
error in the above code syntax error:unterminated string literal
syntax error:unterminated string literal
Can anyone help me
First of all check the session whether or not
like
var user_id = "<? if(isset($_SESSION['user_id'])) { echo $_SESSION['user_id']; } ?>";
Finally I got the solution
Thank you for helping me solve the problem.