网上书店购物系统
源代码在线查看: order1.jsp
软件大小: |
930 K |
上传用户: |
kight521 |
|
|
关键词: |
|
下载地址: |
免注册下载 普通下载
|
|
function CheckSubmit()
{
if( document.orderform.receiver.value == "" )
{ alert("请输入收货人姓名!"); document.orderform.receiver.focus(); return false; }
if( document.orderform.address.value == "" )
{ alert("请输入收货人地址!"); document.orderform.address.focus(); return false; }
if( document.orderform.phone.value == "" )
{ alert("请输入联系电话!"); document.orderform.phone.focus(); return false; }
if( document.orderform.postcode.value == "" )
{ alert("请输入邮编!"); document.orderform.postcode.focus(); return false; }
return true;
}
request.setCharacterEncoding("GB2312");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection("jdbc:odbc:bookshoplk","sa","");
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
ResultSet rs=null;
%>
String s_userid=(String)session.getAttribute("userid");
if(s_userid==null){
%>
身份验证:
您还没有登录,您的购书车信息我们会为您保留:
1.如果您是我们的会员请您回到首页登陆;
2.如果您是新用户,请您先注册;
}else{
rs=stmt.executeQuery("select username,address,phone,postcode from userinfo where userid='"+s_userid+"'");
rs.next();
%>
为方便我们及时将书送到您手上,请您确保以下信息真实可靠:(带*号的为必填项,其它的可以不填)
收货人:
*
收货人地址:
*
联系电话:
*
邮编:
*
付费方式:
邮局汇款
银行转账
货到付款
送货方式:
24小时全国特快专递
邮局托运