用PHP和MSSQL开发的sspace商城系统
源代码在线查看: memcp_infostore.tpl.php
function checkdata(theform)
{
if (theform.storename.value == "" || theform.storename.value.length > "50")
{
alert("");
theform.storename.focus();
return false;
}
if (theform.truename.value == "" || theform.truename.value.length > "12")
{
alert("");
theform.truename.focus();
return false;
}
if (theform.sidcode.value == "" || isNaN(theform.sidcode.value) )
{
alert("");
theform.sidcode.focus();
return false;
}
if (theform.address.value == "")
{
alert("");
theform.address.focus();
return false;
}
if (theform.zipcode.value == "" || theform.zipcode.value.length != "6" || isNaN(theform.zipcode.value))
{
alert("");
theform.zipcode.focus();
return false;
}
if (theform.phone.value == "")
{
alert("");
theform.phone.focus();
return false;
}
else
{
theform.Submit.disabled = true;
return true;
}
}
(*)
(*)
(*)
(*)
(*)
(*)
| | | | | |
| | | | |