‘点击[下一步]进入[下订单],点击[放入收藏架]则继续进行购书
<input type="submit" name="Submit2" value="下一步" onclick="this.form.action='shopping.asp?action=ckxp1&id=<%=bookid%>';this.form.submit()" >
<%if bookscount=1 then%><input type="button" name="Submit22" value="放入收藏架" onClick="location.href='shoucang.asp?id=<%=books%>&action=add'"><%end if%>
</div></td>
‘如果已经决定下订单,需要填写个人资料:
‘如果没有填写收货人姓名,则:
function ssxx()
{
if(checkspace(document.shouhuoxx.shouhuoname.value)) {
document.shouhuoxx.shouhuoname.focus();
alert("对不起,请填写收货人姓名!");
return false;
‘如果没有填写收货人所在的省市,则:
if(checkspace(document.shouhuoxx.shengshi.value)) {
document.shouhuoxx.shengshi.focus();
alert("对不起,请填写收货人所在省市!");
return false;
}
‘如果没有填写收获地址,则:
if(checkspace(document.shouhuoxx.shouhuodizhi.value)) {
document.shouhuoxx.shouhuodizhi.focus();
alert("对不起,请填写收货人详细收货地址!");
return false;
‘如果没有填写邮编,则:
if(checkspace(document.shouhuoxx.youbian.value)) {
document.shouhuoxx.youbian.focus();
alert("对不起,请填写邮编!");
return false;
‘如果没有填写[电话],则:
if(checkspace(document.shouhuoxx.usertel.value)) {
document.shouhuoxx.usertel.focus();
alert("对不起,请留下您的电话!");
return false;
‘如果没有选择送货方式,则:
if(checkspace(document.shouhuoxx.songhuofangshi.value)) {
document.shouhuoxx.songhuofangshi.focus();
alert("对不起,您还没有选择送货方式!");
return false;
‘如果没有选择支付方式,则:
if(checkspace(document.shouhuoxx.zhifufangshi.value)) {
document.shouhuoxx.zhifufangshi.focus();
alert("对不起,您还没有选择支付方式!");
return false;
‘如果Email地址不对,则:
if (document.shouhuoxx.useremail.value.charAt(0)=="." ||
document.shouhuoxx.useremail.value.charAt(0)=="@"||
document.shouhuoxx.useremail.value.indexOf('@', 0) == -1 ||
document.shouhuoxx.useremail.value.indexOf('.', 0) == -1 ||
document.shouhuoxx.useremail.value.lastIndexOf("@")==document.shouhuoxx.useremail.value.length-1 ||
document.shouhuoxx.useremail.value.lastIndexOf(".")==document.shouhuoxx.useremail.value.length-1)
{
alert("Email地址格式不正确!");
document.shouhuoxx.useremail.focus();
&nbs
首页 上一页 7 8 9 10 11 12 下一页 尾页 10/12/12
ASP网上购书(十)由毕业论文网(www.huoyuandh.com)会员上传。