Hi everyone,
I'm working on something just now which requires me to send form contents to two scripts at once, on PHP, one perl.
This is a form to sign up to a mailing list. Our server host has a very good off-the-shelf mailing list manager which we're using. To subscribe to that, the form tag is this :
<FORM METHOD="POST"
ACTION="http://premiertools.proteusweb.com/public_scripts/mailing.pl">
But, that just adds the email address to the mailing list. What I need to do is take the other form values and use PHP to pass them to mySQL.
I've tried this instead, and the browser just hangs - having the form submit to a PHP page which passes the data into mySQL, but also does this :
$url = "http://premiertools.proteusweb.com/public_scripts/mailing.pl?command=subscribe&user=palokefo&list=oakenfold&thq_page=http://www.pauloakenfold.com/listthanks.html&email=$email";
$fp = fopen($url,"r");
but, as I say, this just hangs.
So, is there an easy way to pass post variables to another page (in this case a perl script) without the browser actuall redirecting anywhere? Or is there a simpler way to do this?
Thanks in advance,
Kerin