Re: Where in the Marketo UI do you see leads that are added through custom forms?

Anonymous
Not applicable

Where in the Marketo UI do you see leads that are added through custom forms?

Hi,

I have the following PHP code (in WordPress) which I use to create a lead form a contact form 7 form:

add_action("wpcf7_before_send_mail", "sendDetailsToMarketo");

function sendDetailsToMarketo($cf7){

  $munchkinId = isset($_POST[$array[$cf7->id()]['munchkinId']]) ? $_POST[$array[$cf7->id()]['munchkinId']] : "";

  $formid = isset($_POST[$array[$cf7->id()]['formid']]) ? $_POST[$array[$cf7->id()]['formid']] : "";

  $firstName = isset($_POST[$array[$cf7->id()]['FirstName']]) ? $_POST[$array[$cf7->id()]['FirstName']] : "";

  $lastName = isset($_POST[$array[$cf7->id()]['LastName']]) ? $_POST[$array[$cf7->id()]['LastName']] : "";

  $email = isset($_POST[$array[$cf7->id()]['Email']]) ? $_POST[$array[$cf7->id()]['Email']] : "";

  $url = 'https://app-sj02.marketo.com/index.php/leadCapture/save';

  $myvars = 'munchkinId=' . $munchkinId . '&formid=' . $formid . '&FirstName=' . $firstName . '&LastName=' . $lastName . '&Email=' . $email;

  $ch = curl_init( $url );

  curl_setopt( $ch, CURLOPT_POST, 1);

  curl_setopt( $ch, CURLOPT_POSTFIELDS, $myvars);

  curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);

  curl_setopt( $ch, CURLOPT_HEADER, 0);

  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);

  $response = curl_exec( $ch );

  return $response;

}

Where do I see in the marketo ui the lead that is generated?

Tags (3)
1 REPLY 1
Anonymous
Not applicable

Re: Where in the Marketo UI do you see leads that are added through custom forms?

You need to check for the lead under lead database tab. Search for the lead in the search bar.