基于用户的新闻系统!之二
填写个人资料的文件!注册文件之二

<%@page contentType="text/html;charset=gb2312" %>
<link rel=stylesheet href=
"images/grass.css" type="text/css"]
<body >
[div id=container><!-- ============================================================ --><!-- Begin topBanner -->
[div id=logo><IMG height=60 src=
"images/showimage.jpg" width=780>[/div]<!-- End topBanner --><!-- ============================================================ -->
[div id=center>
[div class=content><!-- ============================================================ --><!-- Begin panel3 Body -->
[div class=postTitle>[/url]会员注册
<a href=
"index.jsp"]回首页[/url] [/div]
[div class=postText>
<body>
<%@ include file=
"inc.jsp" %>
<%

String uID=request.getParameter(
"UID");
String sql=
"select * from pmusers where uID='"+uID+"'";
ResultSet rs=apple.select(sql);
if(rs.next())
{

apple.closeConn();
response.sendRedirect(
"regname.jsp");
}
else
{

{%>

<form method=
"post" name="rcchok1" action="register.jsp" onsubmit="javascript:return Juge(this);"]
<SCRIPT language=JavaScript>
function Juge(theForm)
{
if (theForm.password.value ==
"")
{
alert(
"请填写您的密码 ");
theForm.password.focus();
return (false);
}
if (theForm.password.value !=theForm.password2.value )
{
alert(
"两次输入密码不正确!! ");
theForm.password2.focus();
return (false);
}
if (theForm.email.value ==
"")
{
alert(
"请留下您的email,好吗?以便联系 ");
theForm.email.focus();
return (false);
}

if (theForm.name.value ==
"")
{
alert(
"关系到您个人的信誉问题有关,请如实填写!谢谢 ");
theForm.name.focus();
return (false);
}

if (theForm.tel.value ==
"")
{
alert(
"朋友,留下您的电话,以便别人和您联系! ");
theForm.tel.focus();
return (false);tel
}
if (theForm.adrees.value ==
"")
{
alert(
"万一电话不通,还可以看所在班级嘛!\别忘喽!!");
theForm.adrees.focus();
return (false);
}
}
</SCRIPT>

<input type=hidden name=key value=
"MTA2ODU0MzIyNS45NTU4"]
<p align=
"center">
<font color=green size=
"4" face="华文彩云">注意:</font>
<font color=
"#FFFFFF" face="华文彩云">
</font><font color=
"#FF6600" face="华文彩云">*</font><font color="#FFFFFF" face="华文彩云">
</font><font color=
"#FF6600" size="4" face="华文彩云">为必填项</font><br>
<b><font color=
"ff6600">*</font>用户名:</b>
<font color=#FF0000 size=
"7"> <b> <%=uID%></b> </font>
<input type=
"hidden" name="UID" value="<%=uID%>" size="20"]<br><br>
<b><font color=
"ff6600">*</font>密 码:</b>
<input name=
"password" type="password" tabindex=20 size="20"]
6-16个字符组成<br>
<b><font color=
"ff6600">*</font>再输:</b>
<input name=
"password2" type="password" tabindex=30 size="20"] <br>
<b><font color=
"ff6600">*</font>email:</b>
<input name=
"email" type="text" tabindex=40 size="20"] <br>
<b><font color=
"ff6600">*</font>姓名:</b>
<input name=
"name" type="text" tabindex=60 size="20"] 请如实填写! <br>
<font color=
"989898">

<input name=
"gender" type="radio" tabindex=70 value="男" checked>
</font>男 <font color=
"989898">
<input name=
"gender" type="radio" value="女"]
</font>女<br>
<select name=
"city" size="1" tabindex=80 >
<option selected value=
"北京"]北京</option>
<option>江苏</option>
<option>河北</option>
</select><br>
<b><font color=
"ff6600">*</font></b><strong>电话手机:</strong>

<input name=
"tel" type="text" tabindex=90 size="20"] <br>
<b><font color=
"ff6600">*</font></b><strong>所在班级:</strong>
<input name=
"adrees" type="text" tabindex=90 size="20"]

<p>
<br>
</p>
<input name=
"Go" type=submit value="注册" class=b2 tabindex=110" onMouseOver="this.style.cursor='hand';" >
<input name=
"Go" type=reset value="重写" >
<%}
}
apple. closeConn();
%>
[/div]
<!-- End panel3
-->[/div][/div]<!-- ============================================================ -->
[div id=right>
[div class=sidebar>
<H2>导航 </H2>
<!-- End panel2 --><!-- ============================================================ --></LI>[/div][/div]<!-- ============================================================ --><!-- Begin footer -->
[div id=powered> 2004, 卓达经济管理学院 [/div]<!-- End footer --><!-- ============================================================ -->[/div]
</b></BODY></HTML>
lunzi   2004-12-04 20:59:57 评论:0   阅读:1132   引用:0

发表评论>>

署名发表(评论可管理,不必输入下面的姓名)

姓名:

主题:

内容: 最少15个,最长1000个字符

验证码: (如不清楚,请刷新)

Copyright@2004-2010 powered by YuLog