【php开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了php开源代码-gouwu2.php的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
<?php
include("top.php");
?>
<table width="792" height="386" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="386" align="center" valign="top" bgcolor="#F3F2EE"><table width="550" height="15" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="49" background="images/syt.jpg"><div align="center" style="color: #FFFFFF"></div></td>
</tr>
<tr>
<td height="300" bgcolor="#555555"><table width="550" height="300" border="0" align="center" cellpadding="0" cellspacing="1">
<script language="javascript">
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 name="form1" method="post" action="savedd.php" onSubmit="return chkinput(this)">
<tr>
<td width="100" height="25" bgcolor="#FFFFFF"><div align="center">收货人:</div></td>
<td width="203" bgcolor="#FFFFFF"><div align="left">
<input type="text" name="name" size="25" class="inputcss" style="background-color:#e8f4ff " onMouseOver="this.style.backgroundColor='#ffffff'" onMouseOut="this.style.backgroundColor='#e8f4ff'">
</div></td>
<td width="66" bgcolor="#FFFFFF"><div align="center">性别:</div></td>
<td width="176" bgcolor="#FFFFFF"><div align="left">
<select name="sex">
<option selected value="男">男</option>
<option value="女">女</option>
</select>
</div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center">详细地址:</div></td>
<td height="25" colspan="3" bgcolor="#FFFFFF"><div align="left">
<input name="dz" type="text" class="inputcss" id="dz" style="background-color:#e8f4ff " onMouseOver="this.style.backgroundColor='#ffffff'" onMouseOut="this.style.backgroundColor='#e8f4ff'" size="25">
</div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center">邮政编码:</div></td>
<td height="25" colspan="3" bgcolor="#FFFFFF"><div align="left">
<input type="text" name="yb" size="25" class="inputcss" style="background-color:#e8f4ff " onMouseOver="this.style.backgroundColor='#ffffff'" onMouseOut="this.style.backgroundColor='#e8f4ff'">
</div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center">联系电话:</div></td>
<td height="25" colspan="3" bgcolor="#FFFFFF"><div align="left">
<input type="text" name="tel" size="25" class="inputcss" style="background-color:#e8f4ff " onMouseOver="this.style.backgroundColor='#ffffff'" onMouseOut="this.style.backgroundColor='#e8f4ff'">
</div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center">电子邮箱:</div></td>
<td height="25" colspan="3" bgcolor="#FFFFFF"><div align="left">
<input type="text" name="email" size="25" class="inputcss" style="background-color:#e8f4ff " onMouseOver="this.style.backgroundColor='#ffffff'" onMouseOut="this.style.backgroundColor='#e8f4ff'">
</div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center">送货方式:</div></td>
<td height="25" colspan="3" bgcolor="#FFFFFF"><div align="left">
<select name="shff" id="shff">
<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 height="25" bgcolor="#FFFFFF"><div align="center">支付方式:</div></td>
<td height="25" colspan="3" bgcolor="#FFFFFF"><div align="left">
<select name="zfff" id="zfff">
<option selected value="建设银行汇款">建设银行汇款</option>
<option value="交通银行汇款">交通银行汇款</option>
<option value="邮局汇款">邮局汇款</option>
<option value="网上支付">网上