Posting to 3rd Party

act242

New Member
Good evening all -

I am using the JUser plugin to create a form for registration. It is working well.

I would also like to send that same data to a 3rd party for a CRM, tracking, etc. So basically, I have to use the same variables and send them to two different places.

While the data is getting to the internal database, it is not going out to the outside one. I don't think I am getting the data together correctly.

The script basically pulls all the data, puts it in a URL, and sends it to an external proxy form for processing.

Here is what I am putting in the PHP script:

PHP:
<?php
 
 
//assemble POST URL
$postUrl = 'http://externalpost.com'
. '?external___name=' . $formModel->formData['internaltable___name ']
. '&external___username=' . $formModel->formData['internaltable___username']
. '&external___password=' . $formModel->formData['internaltable___password']
. '&external___email=' . $formModel->formData['internaltable___email'];
//generate iframe via some echoed out javascript
echo "<script>var aoUrl ='$postUrl';var aoIfrm = document.createElement('iframe');aoIfrm.setAttribute('id', 'ifrm');aoIfrm.style.backgroundColor='transparent'; aoIfrm.style.border='none'; aoIfrm.style.width='1px'; aoIfrm.style.height='1px'; aoIfrm.src = aoUrl;document.body.appendChild(aoIfrm);</script>\n";
?>

1. What am I doing wrong?
2. Which time frame of processing the script should I choose?

Thanks!

RKS
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top