Web form to Custom Module

March 1st, 2011

I need capture info from web to my custom SugarCRM module.
After some modification i use “Web to lead” script:
require_once('modules/MyModule/MyModule.php');
if (... we are saving custom Module ...) {
$myinfo = new MyModule();
$myinfo->phone = $_REQUEST['phone'];
$myinfo->fax = $_REQUEST['fax'];
$myinfo->email = $_REQUEST['email']; // etc...
$myinfo->save();
}

// done!
i f somebody have better soltion please write comment.

2 Responses to “Web form to Custom Module”

  1. 1 Lawanda
    May 2nd, 2011 at 00:13

    At last, smeoone comes up with the “right” answer!

  2. 2 Louis Mleczko
    April 15th, 2012 at 20:09

    Good day! Would you mind if I share your blog with my twitter group? There’s a lot of people that I think would really appreciate your content. Please let me know. Thank you

Leave a Reply