I have this code.
Technically it should pop up a window of alert.
But it wont.
this will give value 1.
Whats wrong with it.?
Regards
Dheeraj Joshi
Code:
<html>
<body>
<?php
$res = `php myfile.php`;
switch($res)
{
case 1: "<scriptlanguage=javascript>
alert('Blah Blah')
</script>";
break;
case 2: echo "Choice 2";
break;
case 3: echo "Choice 3";
break;
default:echo "No choice";
break;
}
?>
</body>
</html>
But it wont.
Code:
echo $res;
Whats wrong with it.?
Regards
Dheeraj Joshi
Comment