I am using the below code to call the javascript function from php script. Its not working while am adding the php variable in javascript($msg). Please help me to do this.
if ( isset($_GET['Error'])) {
$msg =$_GET["Error"];
echo '<script type="script.php">validate("Error",$msg);</script>';
}
<script type="script.php">
isn't a valid value for thetype
attribute. Changescript.php
– Aaron W. Jan 17 at 4:07