Skip to content Skip to sidebar Skip to footer

Double Quote Single Quote Not Working In Php/javascript

I can't get my required result when i use this code

Solution 1:

use this:

<?php 
session_start(); 
$returnMessage = "Hey";
$test = fopen('check.txt', a+);
if (empty($_SESSION["nabeel"]))
    fwrite($test,'<script>alert('. $returnMessage .');</script>');
?>

Post a Comment for "Double Quote Single Quote Not Working In Php/javascript"