发信人: truemichael()
整理人: eagle(2000-10-10 11:32:40), 站内信件
|
【 在 newapples (阿文) 的大作中提到: 】
: 用何程序制作FORM
: 在填提交表单时若某一项没填(如姓名),
: 系统便提示:“请填_____项(如姓名)”
: 在网页制作时这种效果应怎样做?
: .......
提交时用脚本检测!如:
<script language=javascript>
funtion check()
{
if document.form1.txtname.value=""
alert("You must input the name!")
return false;
}
</script>
<form name=form1 onsubmit="return check()".....>
<input name=txtname>...
</form>
好象是这样的,你可以参考一下
-- ※ 来源:.月光软件站 http://www.moon-soft.com.[FROM: 61.141.218.135]
|
|