Changeset 668734
- Timestamp:
- 02/15/2013 10:54:49 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dnd-gravity-forms-to-office-autopilot-contact-builder/trunk/gravity-to-officeAP.php
r668733 r668734 399 399 400 400 401 //echo "the state is: " . $state . "<br />";402 //print_r($entry);403 401 404 402 //search for users using email address … … 415 413 416 414 update_oap_contact($cID, $contactTag, $sequence); 417 //echo "update!!!"; 418 //echo $cID; 415 419 416 420 417 } else { 421 418 422 419 add_new_oap_contact($fname, $lname, $email, $address, $city, $state, $zip, $phone, $contactTag, $sequence); 423 //echo "add new!!!"; 424 //echo $cID; 420 425 421 426 422 } … … 463 459 $response = curl_exec($session); 464 460 curl_close($session); 465 //header("Content-Type: text/xml"); 466 467 468 //print_r($response); 469 //die(); 461 470 462 471 463 if ($response != "<result></result>"){ … … 486 478 function update_oap_contact ($cID, $contactTag, $sequence){ 487 479 488 $data ='<contact id="'.$cID.'"><Group_Tag name="Sequences and Tags"><field name="Contact Tags"> gtsr</field><field name="Sequences" action="remove">2</field></Group_Tag></contact>';480 $data ='<contact id="'.$cID.'"><Group_Tag name="Sequences and Tags"><field name="Contact Tags">'.$contactTag.'</field><field name="Sequences">'.$sequence.'</field></Group_Tag></contact>'; 489 481 490 482 $data = urlencode(urlencode($data)); … … 507 499 $response = curl_exec($session); 508 500 curl_close($session); 509 //header("Content-Type: text/xml"); 510 //echo $response; 501 511 502 512 503 } … … 552 543 $response = curl_exec($session); 553 544 curl_close($session); 554 //header("Content-Type: text/xml"); 555 //echo $response; 545 556 546 557 547 }
Note: See TracChangeset
for help on using the changeset viewer.