<table cellpadding="0" cellspacing="0">
<tr>
<td valign="top" bgcolor="#E8E8E8"><div>
<?php include("left.php");?>
</div></td>
<td background="images/line2.gif"> </td>
<td valign="top"><table cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#555555"><div>收货人信息</div></td>
</tr>
<tr>
<td bgcolor="#555555"><table cellpadding="0" cellspacing="1">
<script language="javascript">
/**
* 购物车 收货人信息
* Edit
*/
function chkinput(form)
{
if(form.name.value=="")
{
alert("请输入收货人姓名!");
form.name.select();
return(false);
}
if(form.dz.value=="")
{
alert("请输入收货人地址!");
form.dz.select();
return(false);
}
if(form.yb.value=="")
{
alert("请输入收货人邮编!");
form.yb.select();
return(false);
}
if(form.tel.value=="")
{
alert("请输入收货人联系电话!");
form.tel.select();
return(false);
}
if(form.email.value=="")
{
alert("请输入收货人E-mail地址!");
form.email.select();
return(false);
}
if(form.email.value.indexOf("@")<0)
{
alert("收货人E-mail地址格式输入错误!");
form.email.select();
return(false);
}
return(true);
}
</script>
<form method="post" action="savedd.php" onSubmit="return chkinput(this)">
<tr>
<td bgcolor="#FFFFFF"><div>收货人姓名:</div></td>
<td bgcolor="#FFFFFF"><div><input type="text" size="25"></div></td>
<td bgcolor="#FFFFFF"><div>性别:</div></td>
<td bgcolor="#FFFFFF"><div>
<select>
<option selected value="男">男</option>
<option value="女">女</option>
</select>
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div>详细地址:</div></td>
<td colspan="3" bgcolor="#FFFFFF"><div><input type="text" size="25">
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div>邮政编码:</div></td>
<td colspan="3" bgcolor="#FFFFFF"><div><input type="text" size="25"></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div>联系电话:</div></td>
<td colspan="3" bgcolor="#FFFFFF"><div><input type="text" size="25"></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div>电子邮箱:</div></td>
<td colspan="3" bgcolor="#FFFFFF"><div><input type="text" size="25"></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div>送货方式:</div></td>
<td colspan="3" bgcolor="#FFFFFF"><div>
<select>
<option selected value="普通平邮">普通平邮</option>
<option value="特快专递">特快专递</option>
<option value="送货上门">送货上门</option>
<option value="个人送货">个人送货</option>
<option value="E-mail">E-mail</option>
</select>
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div>支付方式:</div></td>
<td colspan="3" bgcolor="#FFFFFF"><div>
<select>
<option selected value="建设银行汇款">建设银行汇款</option>
<option value="交通银行汇款">交通银行汇款</option>
<option value="邮局汇款">邮局汇款</option>
<option value="网上支付">网上支付</option>
</select>
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div>简单留言:</div></td>
<td colspan="3" bgcolor="#FFFFFF"><div>
<textarea cols="60" rows="8"></textarea>
</div></td>
</tr>
<tr>
<td colspan="4" bgcolor="#FFFFFF"><div><input type="submit" value="提交订单">
</div></td>
</tr>
</form>
</table></td>
</tr>
</table></td>
</tr>
</table>
<?php
if($_GET[dingdanhao]!="")
{ $dd=$_GET[dingdanhao];
session_start();
$array=explode("@",$_SESSION[producelist]);
$sum=count($array)*20+260;
echo" <script language='javascript'>";
echo" window.open('showdd.php?dd='+'".$dd."','newframe','top=150,left=200,width=600,height=".$sum.",menubar=no,toolbar=no,location=no,scrollbars=no,status=no ')";
echo "</script>";
}
?>
4、数据库配置文件conn.php
复制代码 代码如下: