i am fasing a problem i am using java script function in my php file also in my javascript function i use php variables it giving syntex error please help me to solve this problem scripting is ...
<script language="JavaScript">
function do_alert()
{
<? if ($error) : ?>
alert("<? echo $error ?>");
<? $error=""; ?>
<? endif ;?>
<? if ($suspend) : ?>
alert("<? echo $suspend ?>");
<? $suspend=""; ?>
<? endif; ?>
<? if ($active) : ?>
alert("<? echo $activate?>");
<? $activate=""; ?>
<? endif; ?>
}
</script>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body onLoad="function do_alert()">
</body>
</html>