当我将表单数据本地发布到https://crm.zoho.com/crm/WebToLeadForm时,它可以接收消息,而将代码部署到服务器后,crm无法接收POSt数据。我试图修改名称,但是它不起作用,没有涉及Ajax。我可以得到一些想法或可能的原因或调试指示吗?真的很感激。
代码:
<div id='crmWebToEntityForm' style='width:400px;margin:auto;'>
<META HTTP-EQUIV ='content-type' CONTENT='text/html;charset=UTF-8'>
<form action='https://crm.zoho.com/crm/WebToLeadForm' name=WebToLeads2232768000000156067 method='POST' onSubmit='javascript:document.charset="UTF-8"; return checkMandatory()' accept-charset='UTF-8'>
<!-- Do not remove this code. -->
<input type='text' style='display:none;' name='xnQsjsdp' value='beeee37ba331b62bc2d5a5a727bbf3dc004d1b8263b06d3d361af4c37f655a7d'/>
<input type='hidden' name='zc_gad' id='zc_gad' value=''/>
<input type='text' style='display:none;' name='xmIwtLD' value='800b114061553f1a44679d1d8420bc1c400cd0ab309f22de4cddf8cc8b63feb4'/>
<input type='text' style='display:none;' name='actionType' value='TGVhZHM='/>
<input type='text' style='display:none;' name='returnURL' value='http://www.unisol.cn/thanks.shtml' />
<!-- Do not remove this code. -->
<style>
tr , td {
padding:6px;
border-spacing:0px;
border-width:0px;
}
</style>
<table style='width:400px;color:black'>
<tr style='display:none;' ><td style='nowrap:nowrap;text-align:left;font-size:15px;font-family:SimHei;width:50%'>Lead Source</td><td style='width:250px;'>
<select style='width:250px;' name='Lead Source'>
<option value='-None-'>None</option>
</select></td></tr>
<tr><td style='nowrap:nowrap;text-align:left;font-size:15px;font-family:SimHei;width:200px;'>姓名<span style='color:red;'>*</span></td><td style='width:250px;' ><input type='text' style='width:250px;' maxlength='80' name='Last Name' /></td></tr>
<tr><td style='nowrap:nowrap;text-align:left;font-size:15px;font-family:SimHei;width:200px;'>公司</td><td style='width:250px;' ><input type='text' style='width:250px;' maxlength='100' name='Company' /></td></tr>
<tr><td style='nowrap:nowrap;text-align:left;font-size:15px;font-family:SimHei;width:200px;'>电话<span style='color:red;'>*</span></td><td style='width:250px;' ><input type='text' style='width:250px;' maxlength='30' name='Mobile' /></td></tr>
<tr><td style='nowrap:nowrap;text-align:left;font-size:15px;font-family:SimHei;width:200px;'>Email</td><td style='width:250px;' ><input type='text' style='width:250px;' maxlength='100' name='Email' /></td></tr>
<tr><td style='nowrap:nowrap;text-align:left;font-size:15px;font-family:SimHei;width:200px;'>需求描述<span style='color:red;'>*</span> </td><td> <textarea name='Description' maxlength='1000' style='width:250px;'> </textarea></td></tr>
<tr style='display:none;' ><td style='nowrap:nowrap;text-align:left;font-size:15px;font-family:SimHei;width:50%'>Product Interest</td><td style='width:250px;'>
<select style='width:250px;' name='LEADCF1'>
<option value='-None-'>-None-</option>
</select></td></tr>
<tr style='display:none;' ><td style='nowrap:nowrap;text-align:left;font-size:15px;font-family:SimHei;width:50%'>Country</td><td style='width:250px;' ><input type='text' style='width:250px;' maxlength='30' name='Country' value='China'></input></td></tr>
<tr><td style='nowrap:nowrap;text-align:left;font-size:15px;font-family:SimHei;width:200px;'>code</td>
<td><input type='text' style='width:250px;' maxlength='80' name='enterdigest' /></td>
</tr>
<tr><td></td>
<!-- Do not remove this code. -->
<td><a href='javascript:;' onclick='reloadImg()'><img id='imgid' height="50" width="250" border="2" src='https://crm.zoho.com/crm/CaptchaServlet?formId=800b114061553f1a44679d1d8420bc1c400cd0ab309f22de4cddf8cc8b63feb4&grpid=beeee37ba331b62bc2d5a5a727bbf3dc004d1b8263b06d3d361af4c37f655a7d'>
</a></td>
</tr>
<tr><td colspan='2' style='text-align:center; padding-top:15px;'>
<input style='font-size:20px;color:#131307' type='submit' value='submit' />
<input type='reset' style='font-size:20px;color:#131307' value='reset' />
</td>
</tr>
</table>
<script>
var mndFileds=new Array('Last Name','Mobile','Description');
var fldLangVal=new Array('name','phone','description');
var name='';
var email='';
/* Do not remove this code. */
function reloadImg() {
if(document.getElementById('imgid').src.indexOf('&d') !== -1 ) {
document.getElementById('imgid').src=document.getElementById('imgid').src.substring(0,document.getElementById('imgid').src.indexOf('&d'))+'&d'+new Date().getTime();
} else {
document.getElementById('imgid').src = document.getElementById('imgid').src+'&d'+new Date().getTime();
}
}
function checkMandatory() {
for(i=0;i<mndFileds.length;i++) {
var fieldObj=document.forms['WebToLeads2232768000000156067'][mndFileds[i]];
if(fieldObj) {
if (((fieldObj.value).replace(/^\s+|\s+$/g, '')).length==0) {
if(fieldObj.type =='file')
{
alert('Please select a file to upload.');
fieldObj.focus();
return false;
}
alert(fldLangVal[i] +' cannot be empty.');
fieldObj.focus();
return false;
} else if(fieldObj.nodeName=='SELECT') {
if(fieldObj.options[fieldObj.selectedIndex].value=='-None-') {
alert(fldLangVal[i] +' cannot be none.');
fieldObj.focus();
return false;
}
} else if(fieldObj.type =='checkbox'){
if(fieldObj.checked == false){
alert('Please accept '+fldLangVal[i]);
fieldObj.focus();
return false;
}
}
try {
if(fieldObj.name == 'Last Name') {
name = fieldObj.value;
}
} catch (e) {}
}
}
}
</script>
</form>
<!-- Do not remove this code. -->
<iframe name='captchaFrame' style='display:none;'></iframe>
</div>
答案 0 :(得分:0)
解决了,这是zoho-end问题.....