要做的事是在按下增加按钮时将页面刷新---下面用到的地方用**********标出,我是
初学者,就是很苯的那种了,请各位大侠给予实际运做的帮助
<%@page contentType="text/html;charset=GB2312"%>
<%@page language="java"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>日升天辰管理信息系统</title>
<script language="javascript">
function isReady(form){
if(form.txtprovider.value==""){
alert("请输入供应商名称!");
return false;
}
else
{
return true;
}
}
function selectready(form){
if(form.nameselect.value==""){
//alert("请输入供应商名称!");
//return false;
return true
}
else
{
return true;
}
}
function selectnum(form){
if(form.codeselect.value==""){
//alert("请输入供应商编号!");
//return false;
return true;
}
else
{
return true;
}
}
</script>
</head>
<body>
<form action="provider.jsp" method="post" onSubmit="return isReady(this);">
<p> </p>
<table border="0" width="100%">
<tr>
<td width="100%" colspan="4">
<p align="center"><font size="5" face="华文彩云" color="#00FF00">
日升天辰管理信息系统--供应商信息</font></p>
<p align="center"> </td>
</tr>
<tr>
<td width="25%" align="right">
<p align="right"><b><font color="#0000FF">*供应商名称:</font></b></p>
</td>
<td width="25%"><input type="text" name="txtprovider"> </td>
<td width="25%">
<p align="center"><font color="#0000FF"><b> 传真:</b></font></p>
</td>
<td width="25%"><input type="text" name="txtfax"> </td>
</tr>
<tr>
<td width="25%" align="right"><b><font color="#0000FF">地址:</font></b></td>
<td width="25%"><input type="text" name="txtaddress"> </td>
<td width="25%">
<p align="center"><font color="#0000FF"><b> 所在国家:</b></font></p>
</td>
<td width="25%">
<p align="left"><select name="country" size="1">
<option>中国</option>
<option>美国</option>
<option>韩国</option>
<option>日本</option>
<option>中国香港</option>
&nbsp;
</select></p>
</td>
</tr>
<tr>
<td width="25%" align="right"><b><font color="#0000FF">邮政编码:</font></b></td>
<td width="25%"><input type="text" name="txtyoubian"> </td>
<td width="25%">
<p align="center"><font color="#0000FF"><b> 所在城市:</b></font></p>
</td>
<td width="25%">
<p align="left"><select name="city" size="1">
<option>北京</option>
<option>天津</option>
<option>上海</option>
<option>重庆</option>
<option>青岛</option>
&nbsp;
</select>
</p>
</td>
</tr>
<tr>
<td width="25%" align="right"><b><font color="#0000FF">电话:</font></b></td>
<td width="25%"><input type="text" name="txtphone"> </td>
<td width="25%">
<p align="center"><font color="#0000FF"><b> 开户行:</b></font></p>
</td>
<td width="25%"><input type="text" name="txtbank"> </td>
</tr>
<tr>
<td width="25%" align="right"><b><font color="#0000FF">手机:</font></b></td>
<td width="25%"><input type="text" name="txtmobile"> </td>
<td width="25%">
<p align="center"><font color="#0000FF"><b> 银行帐号:</b></font></p>
</td>
<td width="25%"><input type="text" name="txtbankno"> </td>
</tr>
<tr>
<td width="25%" align="right"><b><font color="#0000FF">负责人:</font></b></td>
<td width="25%"><input type="text" name="txtchargeman"></td>
<td width="25%">
<p align="center"><font color="#0000FF"><b>税务登记号:</b></font></td>
<td width="25%"><input type="text" name="txttaxno"></td>
</tr>
</table>
********************************************************************************
<p align="center"><input type="button" name="add" value="增加" onclick="????">
********************************************************************************
<input type="submit" name="save" value="保存">
<input type="button" name="delete" value="删除">
<input type="button" name="nextrecord" value="下一个">
<input type="button" name="prorecord" value="上一个">
</p>
</form>
<p><font color="#FF0000"><b>查询信息栏</b></font>(可根据供应商的名称或编号进行快速查询):</p>
<form action="providerselect.jsp" method="post" onSubmit="return selectready(this);">
<p>供应商名称:</p>
<table border="0" width="20%">
<tr>
<td width="100%"><input type="text" name="nameselect"> </td>
</tr>
</table>
&nbsp;
<input type="submit" name="selectprovider" value="提交查询";">
</form>
<form action="pronumselect.jsp" method="post" onSubmit="return selectnum(this);">
<p>供应商编号:</p>
<table border="0" width="20%">
<tr>
<td width="100%"><input type="text" name="codeselect"> </td>
</tr>
</table>
&nbsp;
<input type="submit" name="selectpronum" value="提交查询";">
</form>
</body>
</html>