<<pre lang="xml">div id="crmWebToEntityForm" align="center"> <meta content="text/html;charset = UTF-8" http-equiv="content-type"> <form accept-charset="UTF-8" action="https://crm.zoho.com/crm/WebToLeadForm" method="POST" onsubmit="javascript:document.charset="UTF-8";"> <table border="0" cellpadding="5" cellspacing="0" style="border-top: 2px solid #999999; border-bottom: 1px solid #999999; background-color: #ffffff;" width="480"> <input name="xnQsjsdp" type="hidden" value="R8GmtDQunn4$" /> <input name="xmIwtLD" type="hidden" value="0KkcJmB-M0IJB3CFzjZrv2-*B6-MHnNR" /> <input name="actionType" type="hidden" value="TGVhZHM=" /> <input name="returnURL" type="hidden" value="http://mwac87.hostzi.com" /> <br> <tr> <td align="left" colspan="2" style="background-color: #f5f5f5; border-bottom: 2px dotted #dadada; color: #000000; font-family: sans-serif; font-size: 14px;"> <strong>Web Form</strong></td> </tr> <tr> <td align="right" nowrap style="font-family: sans-serif; font-size: 12px; font-weight: bold" width="25%"> Company :</td> <td width="75%"> <input maxlength="100" name="Company" type="text" /> </td> </tr> <tr> <td align="right" nowrap style="font-family: sans-serif; font-size: 12px; font-weight: bold" width="25%"> Last Name :</td> <td width="75%"> <input maxlength="80" name="Last Name" type="text" /> </td> </tr> <tr> <td align="right" nowrap style="font-family: sans-serif; font-size: 12px; font-weight: bold" width="25%"> Email :</td> <td width="75%"> <input maxlength="100" name="Email" type="text" /> </td> </tr> <tr> <td align="right" nowrap style="font-family: sans-serif; font-size: 12px; font-weight: bold" width="25%"> No of Employees :</td> <td width="75%"> <input maxlength="16" name="No of Employees" type="text" /> </td> </tr> <tr> <td align="center" colspan="2" style="background-color: #eaeaea"> <input name="save" onclick='ajaxFunction();' type="submit" value="Save" /> <input name="reset" type="reset" value="Reset" /> </td> </tr> </table> </form> </div>
<script> function ajaxFunction(){ var ajaxRequest; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){ // Something went wrong alert("Your browser broke!"); return false; } } } // Create a function that will receive data sent from the server ajaxRequest. önreadystatechange = function(){ if(ajaxRequest.readyState == 4){ document.myForm.time.value = ajaxRequest.responseText; } } var Company = document.getElementById('Company'); var LastName = document.getElementById('LastName'); var Email = document.getElementById('Email'); var NoofEmployees = document.getElementById('NoofEmployees'); var queryString = "?Company=" + Company + "&Email=" + Email + "&NoofEmployees=" + NoofEmployees ; alert(queryString); ajaxRequest.open("GET", "main.php" + queryString, true); ajaxRequest.send(null); } </script>
redirect
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)