织梦dedecms自定义表单提交验证手机号邮箱等技巧。
先贴出js代码
script
name=document.getElementByIdx_x_x(fzrxm).value;
if(name==)
{
alert(请输入姓名!)
return false;
}
tel=document.getElementByIdx_x_x(lxdh).value;
return false;
eml=document.getElementByIdx_x_x(lxqq).value;
return false;
/script
下面,在form表单提交的时候 ,加上
form action=/plus/diy.php enctype=multipart/form-data method=post
很容易的方法,如果还不明白的朋友可以留言。