【php开源代码栏目提醒】:网学会员php开源代码为您提供shopping_cart_getuserinfo.php参考,解决您在shopping_cart_getuserinfo.php学习中工作中的难题,参考学习。
<?php
include_once("conn/conn.php");
include_once("top.php");
?>
<table width="870" height="30" align="center" background="images/bg_14(1).jpg"><tr><td width="129" rowspan="2"> </td>
<td width="729"></td>
</tr>
<tr>
<td><span class="a9">购物结算</span></td>
</tr>
</table>
<table width="870" align="center" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#6EBEC7">
<tr>
<td bgcolor="#FFFFFF"> <form name="form11" method="post" action="savebuyuser.php" onsubmit="return(chkinput(this))">
<table width="750" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><br>
<table width="680" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999999">
<script language="javascript">
function chkinput(form){
if(form.recuser.value==""){
alert('请输入收货人!');
form.recuser.focus();
return(false);
}
if(form.sex.value==""){
alert('请选择收货人性别!');
form.sex.focus();
return(false);
}
if(form.city.value==""){
alert('请选择收货人所在城市!');
form.city.focus();
return(false);
}
if(form.address.value==""){
alert('请输入收货人联系地址!');
form.address.focus();
return(false);
}
if(form.yb.value==""){
alert('请输入收货人邮编!');
form.yb.focus();
return(false);
}
if(isNaN(form.yb.value)){
alert('邮编只能由数字组成!');
form.yb.focus();
return(false);
}
if(form.yb.value.length!=6){
alert('邮编号由6位组成!');
form.yb.focus();
return(false);
}
if(form.qq.value==""){
alert("请填写您的QQ号码!");
form.qq.select();
return(false);
}
if(isNaN(form.qq.value)==true){
alert("QQ号只能由数字组成!");
form.qq.select();
return(false);
}
if(form.email.value=="")
{
alert("请输入E-mail地址!");
form.email.select();
return(false);
}
var i=form.email.value.indexOf("@");
var j=form.email.value.indexOf(".");
if((i<0)||(i-j>0)||(j<0))
{
alert("请输入正确的E-mail地址!");
form.email.select();
return(false);
}
if(form.mtel.value==""){
alert('请输入移动电话号码!');
form.mtel.focus();
return(false);
}
if(form.gtel.value==""){
alert('请输入固定电话号码!');
form.gtel.focus();
return(false);
}
return(true);
}
</script>
<tr>
<td bgcolor="#FFFFFF">
<table width="680" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="40"><table width="80" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#CCCCCC"><div align="center">收货人信息</div></td>
</tr>
</table></td>
<td colspan="3"> <font color="#FF0000">*</font> <font color="#999999">请务必正确填写您的个人详细信息!</font></td>
</tr>
<tr>
<td width="120" height="30"><div align="right">收货人:</div></td>
<td colspan="3"> <input type="text" name="recuser" size="20" class="inputcss"></td>
</tr>
<tr>
<td height="30"><div align="right">性别:</div></td>
<td height="30" colspan="3"> <select name="sex">
<option value="" selected="selected">-请选择-</option>
<option value="男">--男--</option>
<option value="女">--女--</option>
</select> </td>
</tr>
<tr>
<td height="30"><div align="right">所在城市:</div></td>
<td height="30" colspan="3"> <select name="city">
<option value="" selected="selected">-请选择-</option>
<?php
$sql=mysql_query("select city,id from tb_city order by addtime desc",$conn);
$info=
mysql_fetch_array($
sql);
if($info==false){
echo " <option >-暂无城市信息-</option>";
}else{
do{
?>
<option value="<?php echo $info[id];?>"><?php echo $info[city];?></option>
<?php
}while($info=mysql_fetch_array($sql));
}
?>
</select>
</td>
</tr>
<tr>
<td height="30"><div align="right">详细联系地址:</div></td>
<td height="30" colspan="3"> <input type="text" name="address" size="60" class="inputcss"></td>
</tr>
<tr>
<td height="30"><div align="right">邮政编码:</div></td>
<td height="30" colspan="3"> <input type="text" name="yb" size="20" class="inputcss"></td>
</tr>
<tr>
<td height="30"><div align="right">QQ号码:</div></td>
<td height="30" colspan="3"> <input type="text" name="qq" size="20" class="inputcss"></td>
</tr>
<tr>
<td height="30"><div align="right">E-mail:</div></td>
<td height="30" colspan="3"> <input type="text" name="email" size="20" class="input