I'm getting closer, but I'm still encountering some problems. I'm getting a blank page when the webtolead capture form is filled out.
I have created the lead capture form through the campaigns and am getting the data to post to the account, but on submit I'm directed to: http://acceleratetowealth.com/member...bToLeadCapture
I figure that I've done something incorrect on this but I'm not certain what it is.
My form is:
Code:
<form action="http://mydomain.com/members/index.php?entryPoint=WebToLeadCapture" name="WebToLeadForm" method="post" id="WebToLeadForm">
<input id="redirect_url" name="redirect_url" value="http://mydomain.com/bazi_movie.php" type="hidden">
<input id="campaign_id" name="campaign_id" value="449e570b-8325-69c1-7782-49f0da0676da" type="hidden">
<input type='hidden' name='lead_source' value='Web Site'>
<input id="assigned_user_id" name="assigned_user_id" value='e9067c99-84b4-88f5-0cc1-49ef4793a039' type="hidden">
<input id="req_id" name="req_id" value="last_name;" type="hidden">
<div align="center">
<table border="1" width="350" cellspacing="0" cellpadding="5" height="230">
<tr>
<td>
<table border="0" width="350" cellspacing="0" cellpadding="5" height="230">
<td valign="top" colspan="2" align="center">
<p align="center"><font color="#65162C" face="Arial"><b>Bazi Movie Ticket</b></font></p>
</td>
</tr>
<tr>
<td><font face="arial" size="2" color="#666666"><label>Full Name</label>
</td>
<td><input id="first_name" name="first_name" type="text"> <input id="last_name" name="last_name" type="text"></td>
</tr>
<tr>
<td><font face="Arial" size="2" color="#666666"><label>Email Address</label></td>
<td><input id="webtolead_email1" name="webtolead_email1" onchange="validateEmailAdd();" type="text"></td>
</tr>
<tr>
<td><font face="Arial" size="2" color="#666666"><label>Phone Number</label></td>
<td><input id="phone_home" name="phone_home" type="text"></td>
</tr>
<td valign="top" colspan="2" align="center">
<input type="image" value="Submit" name="submit" src="images/admit_one_to_bazi_movie_ticket.jpg">
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form> In the webtoleadcapture.php file in the modules/campaigns folder I altered this:
$users = array(
'PUT A RANDOM KEY FROM THE WEBSITE HERE' => array('name'=>'admin', 'pass'=>'theactualpassfromthesqldb'),
Am I supposed to do something else? Is this a bug? I noted the following on the wiki: http://developers.sugarcrm.com/wordp...s-in-sugar-51/, however, I'm not sure if this is related to the issue that I'm having.
Any assistance would be appreciated.
Kindest Regards
Pattie
Bookmarks