I'm not 100% clear what you want to do, but if I'm correct, you have a form where user data will be submitted. When it is submitted, you want to do two things with that data.
- Add the info to your autoresponder system
- Send an email with the data
Normally, I'd say, just code the functionality of both in one script. That is, do what ever code you need to add the info to your autoresponder, then do your code to send the email. Sounds simple.
However, since you are asking this question, my assumption is that you are using other people's scripts to do both functions. That is, you really don't know how to turn the two scripts into one script, so in your mind, you need a way to submit the form data to both functions. (hope I'm correct)
I do believe the most straightforward way to handle this is to create a single script that incorporate the functionality of both the current scripts. But, if that is NOT an option (I don't know your exact requirements), you can use curl in PHP to do a server-side call to another page.
[php]
$postdata = 'name='.$name;
$postdata .= '&age='.$age;
$postdata .='&email='.$email_address;
$ch=curl_init();
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($ch,CURLOPT_URL,"http://www.mydomain.com/somescript.php");
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,$postdata);
//Start ob to prevent curl_exec from displaying stuff.
ob_start();
curl_exec($ch);
//Get contents of output buffer
$res = ob_get_contents();
curl_close($ch);
[/php]
Now, it is important that you make the curl call BEFORE you output anything. Start your normal browser output after you do the curl thing.
PHP Documentation for curl functions
If this does not make any sense to you, please post again with specific and minimal details to explain your issue. Thanks.