彩盈彩票

搜索引擎优化(SEO) | 
UR建站服务热线
营销型网站更赚钱

aspcms留言表单内容验证解决方案

发表日期:2019-07-22T22:30:05 内容来源:UR建站官网

JINTIANZAIJIKEHUWANGZHANSHIYONGaspcmsCHENGXUXIEYIGELIUYANYEMIANDESHIHOU,YINWEIYAOSHEJIDAOYIXIEJIBENDENEIRONGYANZHENG,SUOYISHEJIDAOLEBIAODANNEIRONGYANZHENGDEWENTI,XIANGXINHENDUOZHANZHANGOUERYEHUIYUDAOZHEIYANGDEWENTI,SUOYIJIUZAIZHEILIJILUXIALAI,XIWANGNENGGOUBANGZHUYOUXUYAODEPENGYOU。

BIAODANNEIRONGYANZHENGDEFANGFAYOUHENDUO,DANSHIZUIJIANDANYEZUIZHIJIEDEYINGGAIJIUSHITONGGUOjsLAIYANZHENGBIAODANNEIRONGLE,ZHEIYANGBUXUYAOWOMENLEJIECHENGXU,YEBUYONGDUICHENGXUZUOTAIDUOXIUGAI,ZHIYAOZAILIUYANBANDEMOBANWENJIANZHONGJIARUYIDUANYANZHENGNEIRONGDEjsWENJIANJIUKEYISHIXIAN。

这个是给做网站的朋友分享的,如果你不是站长也不是做网站的就默默飘过吧,哈哈!

YANZHENGBIAODANDEJSDAIMARUXIA(KEYIZHIJIEZAILIUYANYEMIANYINYONG):

function checkpost()

{

if(biaodan.title.value==""){

alert("QINGTIANXIEBIAOTI");

biaodan.title.focus();

return false;

}

if(biaodan.mobil.value.length<>11){

alert("QINGTIANXIEZHENGQUEDESHOUJIHAOMA");    

biaodan.mobil.focus();

return false;

}    

}

aspcmsLIUYANBIAODANDEXIEFARUXIA(SHIYONGDESHIHOUJIDETIHUAN“《”):

《form action="/save.asp" method="post" name="biaodan" onsubmit="return checkpost();">

《input name="title" type="text"/>

《input name="mobil" type="text"/>

《/form>