网页上如何添加登陆的user那么和pass?

来源:百度知道 编辑:UC知道 时间:2024/06/15 09:58:44
我有一个网站,我先把它变成可注册可登陆得一个网站。我用的服务器是支持Mysql和PHP的。但是我两个都不会,请帮我写一段(需要username和pssword的,最好是可以注册的 )代码。谢谢。。。
最好是PHP的

详情请看 http://www.webjx.com/htmldata/2006-04-02/1143943622.html

<%@ page language="java" contentType="text/html; charset=gb2312" %>
<html>
<head>
<title>
Login
</title>
</head>
<body>
<center>
<form name="frmLogin" action="/main.jsp" method="post">
<br>
用户名:<input name="user_id" type="text"><br>
密 码:<input name="user_pwd" type="password"><br><br>
<input name="butSubmit" type="button" value="登陆" onClick="sub()">

<input name="reset" type="reset" value="重写">
</form>
</center>
</bo