[HTML] 纯文本查看 复制代码 <form action="链接的地址" name="formAddress" id="formAddress" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form_list">
<tr>
<th valign="top">具体地址:</th>
<td><span class="star">*</span><input name="daddr" id="daddr" type="text" size="50"/>*</td>
<td><div id="daddrTip" style="width:250px"></div></td>
</tr>
<tr>
<th>邮编:</th>
<td><span class="star">*</span><input name="code" id="code" type="text" size="25"/>*</td>
<td><div id="codeTip" style="width:250px"></div></td>
</tr>
<tr>
<th>收货人姓名:</th>
<td><span class="star">*</span><input name="buyername" id="buyername" type="text" size="25"/>*</td>
<td><div id="buyernameTip" style="width:250px"></div></td>
</tr>
<tr>
<th>手机:</th>
<td><input name="phone" id="phone" type="text" size="25"/><span class="gray">手机和座机至少填写一个</span></td>
<td><div id="phoneTip" style="width:250px"></div></td>
</tr>
<tr>
<th>座机:</th>
<td><input name="telephone1" id="telephone1" type="text" size="10"/> - <input name="telephone2" id="telephone2" type="text" size="25"/> - <input name="telephone3" id="telephone3" type="text" size="10"/></td>
<td><div id="teltip" style="width:250px"></div></td>
</tr>
<tr>//一般都是用submit提交,这里用function提交
<th> </th>
<td><a href="javascript:addressadd();" name="savesubmit" id="savesubmit" class="btn_save">保存</a><a href="address_manage.php?act=show" class="btn_cancel">返回</a></td>
</tr>
</table>
</form>
<javascript>
function addressadd()
{
document.formAddress.submit(); //formAddress是上面表单的ID
}
</javascript>
|