<script language='javascript' src='{APP_PATH}index.php?m=formguide&c=index&a=show&formid=21&action=js&siteid=1'></script>
<form method="post" action="{APP_PATH}index.php?m=formguide&c=index&a=show&formid=21&action=js&siteid=1" name="myform" id="myform">
<table width="725" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:100px;">
<tbody><tr>
<td width="150" height="30" align="center">标 题:</td>
<td width="562" height="30"><input type="text" name='info[title]' id="title" class="lyb_text"></td>
</tr>
<tr>
<td width="150" height="30" align="center">姓 名:</td>
<td height="30"><input type="text" name='info[name]' id="names" class="lyb_text"></td>
</tr>
<tr>
<td width="150" height="30" align="center">联系方式:</td>
<td height="30" style="font-size: 12px;"><input type="text" name='info[connect]' id="connect" class="lyb_text">
(QQ,电话,坐机,可添写任意一种方式)</td>
</tr>
<tr>
<td width="150" align="center" valign="top" style="padding-top:15px;">留言内容:</td>
<td height="330"><label for="textfield4"></label>
<textarea name='info[content]' class="lyb_text2" id="content"></textarea></td>
</tr>
<tr>
<input type="hidden" name='dosubmit' value='1'>
<td height="30" align="center" valign="top" style="padding-top:15px;"> </td>
<td height="30" align="left"><button id="dosubmit" class="dosubmit" name="dosubmit"><a href="javascript:void(0)" ><img src="/statics/china/images/lyb_btn.jpg"></a></button></td>
</tr>
</tbody></table>
</form>
<script>
$('#dosubmit').click(function(){
$.ajax({
type:'POST',
url:"{APP_PATH}index.php?m=formguide&c=index&a=show&formid=12&action=js&siteid=1",
data:$('form').serialize(),
success:function(data){
}
// data:{'info[class]':zxzl,'info[name]':name,'info[email]':email,'info[number]':number,'info[ss]':ss,'info[content]':content,'dosubmit':1},
});
$('#dosubmit').attr('disabled',true);
alert('留言提交成功!');
setTimeout(function(){
window.location.href="/";
},3000);
});
</script>
<input type="hidden" name='dosubmit' value='1'> 必须要加上去