1

有什么方法可以在 PHP 中执行 VBScript - 我在 Windows 机器上使用 Apache Server

我正在尝试在 PHP 驱动的 Apache 服务器上执行这个简单的 VBScript,但不能这样做

<html>
<head><title>Hello</title>
<script type="text/vbscript">
Sub submit_btn_onclick()
    document.write("<h1>I <3 Web Programming!</h1>")
    usr = document.getElementById("user_name").value
    If usr <> "" Then

        output = document.getElementById("user_name").value
    else
        output = "Error!"
    End If
    document.getElementById("output").innerHTML = output
End Sub
</script>
</head>
<body>
    <input type="text" name="user_name" id="user_name" maxsize="10">
    <input type="button" name="submit_btn" id="submit_btn" value="">
    <div id="output"></div>
</body>
</html>

提前致谢!

4

0 回答 0