回覆列表
-
1 # zdpth1290
-
2 # maimi32709
把你的HTML程式碼放到ASP的Else段,這樣當username和ps都有值的時侯,就不會輸出表單了.改後代碼如下:"" and request.form("ps")"" then dim username,ps username=request.form("username") ps=request.form("ps") Response.write"ningshurudeshi:"&username Response.write"ningshudeshi:"&psElse%>
把你的HTML程式碼放到ASP的Else段,這樣當username和ps都有值的時侯,就不會輸出表單了.改後代碼如下:<%Ifrequest.form("username")<>""andrequest.form("ps")<>""thendimusername,psusername=request.form("username")ps=request.form("ps")Response.write"ningshurudeshi:"&usernameResponse.write"<br>ningshudeshi:"&psElse%><formmethod="POST"action="6-3.asp"name="myform"><p>使用者名稱:<inputtype="text"name="username"size="20">密碼:<inputtype="text"name="ps"size="20"><inputtype="submit"value="提交"name="登入"></p></form><%Endif%>