图书浏览页面
图书一览 |
</td>
</tr>
2
图书详情 |
3
新增图书信息 |
4
<%
//?username=hhh&userpass=123&reupwd=123&role=0®time=&lognum=0
//post+
request.setCharacterEncoding(“utf-8”);
String name2=request.getParameter(“username”);
String name=new String(name2.getBytes(“iso-8859-1”),“utf-8”);
//String name=request.getParameter(“username”);
String pwd=request.getParameter(“userpass”);
String role=request.getParameter(“role”);
int drole=Integer.parseInt(role);
String regtime=request.getParameter(“regtime”);
String lognum=request.getParameter(“lognum”);
int dlognum=Integer.parseInt(lognum);
out.print(“你的名字是:”+name+"
");
out.print(“你的密码是:”+pwd+"
");
out.print(“你的角色是:”+drole+"
");
out.print(“你的注册时间是:”+regtime+"
");
out.print(“你的登录次数是:”+dlognum+"
");
%>
两秒后跳到登录页面
昨天内容回顾
1、html的操作思想
** 使用标签把要操作的数据包起来,通过修改标签的属性值来实现标签内数据样式的变化
***
2、图像标签
<img src="图片的路径"/>
** 通过html访问本地图片,使用绝对路径,目前有问题
3、超链接标签
<a href="" target="_blank"></a>
4、表格标签
** 技巧:数里面有多少行,每行里面有多少个单元格
** <table></table>
<tr> <td> <th>
5、表单标签
** <form></form>
- action method enctype
- method: get post
** 输入项
*** 有name属性
* 普通输入项 type="text"
* 密码: password
* 单选:radio
- name值相同
- value值
* 复选框:checkbox
- name值相同
- value值
* 下拉框 select option
* 文本域 textarea
* 隐藏项:type="hidden"
* 文件: type="file"
* 提交按钮 type="submit"
* 重置 : reset
* 使用图片提交: <input type="image