...

View Full Version : php inside vbscript



alcool9999
10-11-2009, 03:40 PM
hi i need to get something like this to work with php inside vbscript.

obviously more complicated.


<html>
<head>
<script language="VBscript">
Sub yes_onclick()
alert("Hi")
<?php
echo("hi")
?>
alert("hi")
End Sub
</script>
</head>
<body>
<input type="button" name="yes" value="go">
</body>
</html>

thanks

abduraooft
10-11-2009, 05:49 PM
<script language="VBscript">
Sub yes_onclick()
alert("Hi")
<?php
echo("hi")
?>
alert("hi")
End Sub
</script> Output of the above after parsing would be
Sub yes_onclick()
alert("Hi")
hi
alert("hi")
End Sub which will give you syntax error. What actually you need to achieve?

vinyl-junkie
10-11-2009, 05:55 PM
Not tested, but I assume you want something like this:



<html>
<head>
<script language="VBscript">
Sub yes_onclick()
<?php
echo("alert(\"Hi\")");
?>
alert("hi")
End Sub
</script>
</head>
<body>
<input type="button" name="yes" value="go">
</body>
</html>

hinch
10-11-2009, 05:59 PM
why on earth would you need php and vb script you could just use response.write and do it all in vb script



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum