怎么写html网页( 二 )


-----html只是一种前台页面的设计语言,用他写出来的是静态页面,如果要实现你需要的功能,你可以用jsp、asp、php配合html来写 。具体选哪种语言,看你自己对他们的熟练程度看!
-----html语言是实现不了你想要的功能的 如果想实践可以用asp 比较简单 其他的制作动态的还有jsp psp 等等 可以上网下载个留言本系统自己学习下 看懂了就会做了 原理一样
-----<html>
<form method="post" action="2.asp">
<p>;用户名:<input type="text" name="username">
<p>;密码:<input type="password" name="password">
.
.
.
.
</p>
</form>
</html>; 第一个页面
第二个页面:
<% dim username,pasword
username=request.form("usrname")
password=request.form("password")
if usrname<>;"你要的用户名" and password="你要的密码" then
response.write "你的用户名不正确,请重新输入!"
elseif usrname="你要的用户名" and password<>;"你要的密码" then
response.write "你的密码不正确,请重新输入!"
elseif usrname<>;"你要的用户名" and password<>;"你要的密码" then
response.write "对不起,你无权访问!"
end if
%>; 我只能简单的说一下了,其实还有一个数据库验证的过程,要调用数据库的,只能帮你到这了,不好意思
【怎么写html网页】-----只用html是不行的 。需要加上asp或者javaspcript或者vbspcript 。javaspcript功能比较多一点 。