Skip to content

Instantly share code, notes, and snippets.

@ronnieduke
Last active August 29, 2015 14:25
Show Gist options
  • Save ronnieduke/47ca9a90432cac6f088b to your computer and use it in GitHub Desktop.
Save ronnieduke/47ca9a90432cac6f088b to your computer and use it in GitHub Desktop.
Marketo Munchkin associateLead PHP
<script>
mktoMunchkinFunction('associateLead',
{
Email: “<?php echo "decodeURIComponent(\"" . rawurlencode($_REQUEST["userEmail"]) . "\")" ?>”,
FirstName: "<?php echo "decodeURIComponent(\"" . rawurlencode($_REQUEST["userFirst"]) . "\")" ?>",
LastName: "<?php echo "decodeURIComponent(\"" . rawurlencode($_REQUEST["userLast"]) . "\")" ?>"
},
'<?php echo hash('sha1', 'mysecretkey' . $_REQUEST["userEmail"]); ?>'
);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment