0
Hey, guys, what’s up? I’m having trouble putting PHP variable in link JS, what I need to know this because I’m trying to make a u login system on my site... see the line of code r get a supposed solution. Thanks in advance!!!!!!!!
My problem is that I have this command line in Javascript that is inside the file:
<?
$opts = uniqid(rand(), true);
echo "<script> window.location.assign('http://localhost/web/'" . $opts . '") </script>;
?>
but this line of code just doesn’t happen... How to proceed?
Try
"<script> window.location.assign('http://localhost/web/$opts') </script>";
or"<script> window.location.assign(\"http://localhost/web/$opts\") </script>";
.– Florida