When making inquiries using a customized form, some colleagues said that time was needed, so that we could see which country and which customer sent inquiries based on statistics. So Baidu took the following tutorial
首先修改plus/diy.php,在: if($fieldinfo[1] == 'textdata') { ${$fieldinfo[0]} = FilterSearch(stripslashes(${$fieldinfo[0]})); ${$fieldinfo[0]} = addslashes(${$fieldinfo[0]}); } 后面添加: if($fieldinfo[0] == 'time') { ${$fieldinfo[0]}=date("Y-m-d H:i:s"); } 在自定义字段里添加字段 提交时间:time <input type="hidden" name="time" id="time" value=""> 需要再表单里添加上time 这样是没错的,但是很多朋友添加完之后发现还是没有时间。。。原因很简单。,,少了一步 当你新添加了个time字段后,form标签里是有time字段的,但以前是没有time字段的。 最后一步,将新的下面两段代码替换以前的。。就ok 了 。。还是不行 加QQ:657235615、、、 <input type="hidden" name="dede_fields" value="name,text;pname,text;email,text;phone,text;msg,multitext;time,text" /> <input type="hidden" name="dede_fieldshash" value="1232132335b8d52b457b" /> dedecms自定义表单相关信息
Dedecms Information Publishers View Custom Form Content
Dedecms Customizes Forms to Add Captcha Function
Dedecms custom form realizes message function