Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

echo '<script type="text/javascript" language="javascript">""); 

Pass Variables and get them in next script:

JS method:"");
    $var1 = $_GET['var1'];
    $var2 = $_GET['var2'];

Pass back file via readfile as per normal

Pass PHP Variable inside javascript:

  • Use string interpolation with double quotes for the echo statement and single quotes everywhere inside the javascript

 $link = "$file";

  echo "<script type='text/javascript' language='javascript'>'$link');
  • No labels

1 Comment