$addvalue .= ", '".iconv( "UTF-8", "gb2312//IGNORE" , ${$fieldinfo[0]})."'";
$.post方法
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var dataString = {
'name':$("#name").val(),
'tel':$("#tel").val(),
'setup':'ajax',
'action':'post',
'diyid':1,
'do':2,
'dede_fields':'name,text;tel,text',
'dede_fieldshash':'6b5fb808a4b9ea6d0603d983246a88a1',
};
$.post("/plus/diy.php",dataString,function(result){
if(result=="1"){
alert('发送成功!');
$('#diyform').reset();//重置form
}else{
alert('发送失败!');
}