Web form to Custom Module

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 atsakymai į “Web form to Custom Module”

  1. At last, smeoone comes up with the „right“ answer!

  2. 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

Parašykite komentarą

El. pašto adresas nebus skelbiamas. Būtini laukeliai pažymėti *