PDA

Click to See Complete Forum and Search --> : call vbscript sub in php?


Mih_Flyer
Dec 28th, 2001, 05:10 PM
hello, if i have this code:


<head>
<script language="vbscript">
sub msg(message as string)
msgbox(message)
end sub
</script>
</head>

<?
/*some php code here...

if ($op="blah blah")
{
\* call msg sub of vbscriot
}

?>



now how do i call the sub inside php?

scoutt
Dec 28th, 2001, 07:34 PM
I don't think you can. just convert that vbscript to php with this

ASPtoPHP (http://asp2php.naken.cc/)

sail3005
Dec 28th, 2001, 08:08 PM
you can't call the sub

made_of_asp
Dec 28th, 2001, 10:44 PM
maybe this?

<?
/*some php code here...

if ($op="blah blah")
{
?>
<head>
<script language="vbscript">
sub msg(message as string)
msgbox(message)
end sub
</script>
</head>
<?
}

?>