Example #1
0
function ticr_gf_17_submission($entry, $form)
{
    // GENERATE THIS IN THE ACT-ON CONTENT/FORM POST URLS PANEL
    $post_url = "http://info.eecoonline.com/acton/eform/13223/0046/d-ext-0001";
    $ao_gf1 = new ActonWordPressConnection();
    $ao_gf1->setPostItems("First Name", $entry['1.3']);
    $ao_gf1->setPostItems("Last Name", $entry['1.6']);
    $ao_gf1->setPostItems("Subscribe to news -", $entry['2.1']);
    $ao_gf1->setPostItems("Subscribe to news -", $entry['2.2']);
    $ao_gf1->setPostItems("Subscribe to news -", $entry['2.3']);
    $ao_gf1->setPostItems("Subscribe to news -", $entry['2.4']);
    $ao_gf1->processConnection($post_url);
}
Example #2
0
function ticr_acton_gf11_submit($gf_entry)
{
    // GENERATE THIS IN THE ACT-ON CONTENT/FORM POST URLS PANEL
    $post_url = "http://info.eecoonline.com/acton/eform/13223/0032/d-ext-0001";
    // declare new ActonWordPressConnection object
    $ao_gf1 = new ActonWordPressConnection();
    $ao_gf1->setPostItems("First Name", $gf_entry['1.3']);
    $ao_gf1->setPostItems("Last Name", $gf_entry['1.6']);
    $ao_gf1->setPostItems("E-mail Address", $gf_entry['3']);
    $ao_gf1->setPostItems("Phone", $gf_entry['4']);
    $ao_gf1->setPostItems("Company Name", $gf_entry['33']);
    $ao_gf1->setPostItems("Company Address", $gf_entry['2.1']);
    $ao_gf1->setPostItems("City", $gf_entry['2.3']);
    $ao_gf1->setPostItems("State", $gf_entry['2.4']);
    $ao_gf1->setPostItems("Zip Code", $gf_entry['2.5']);
    // processConnection method, with your external post URL passed as the argument
    $ao_gf1->processConnection($post_url);
}