I'm trying to hook up a custom Lead Capture form, following the steps outlined in <http://www.sugarcrm.com/wiki/index.php?title=Creating_a_lead_capture_form_for_y our_website>. Using SugarCRM 5.2 I think.
I get that I have to create a leadCapture_override.php file, but I don't really understand what is supposed to go in there. The example suggests the following text:
<?
$users = array(
'my_lead_capture_form' => array( 'name' => 'USERNAME GOES HERE',
'pass' => 'PASSWORD HASH GOES HERE' ));
?>
but where do I get a username and password hash from? Can I access the database from inside the PHP script? Which username should I be using?
And what should I be doing with the rest of the fields from the custom form?
The example then goes on to discuss code inside the leadCapture.php file, but the one I found only seems to redirect to index.php. I'm at a bit of a loss here. Any help would be greatly appreciated.


LinkBack URL
About LinkBacks



Reply With Quote



Bookmarks