1.

Solve : php pass variables to another php?

Answer»

Well basically here is what I have so far. I have a form where a user inputs things. Then It sends it to a php script which does some work with it. What I want it to do is have a user send enter the stuff in the form, it then gets submited to my script, and my script passes the variables onto another WEBSITE.

Now I already have the variables sent via post to my script. I need them to be sent on to the other website using post too. I have no control over the other website. I just know what variables i have to send. And i do not want the user to have to enter his info all over again just so it gets sent to the other site.

So how can i pass along post variables?

edit:
I may not have written this good so let me know and i will rewrite it.You have no control over the other website? Something "phishy" GOING on here...Actually its not. Its a guys website at my school. He just wants an extra layer of security to where u have to go through my site to get to his. Kinda weird i know but he already has it setup on his side and is reluctant to change it. So I already have everything setup accept this. cookies and all that.

Just telling me how would be appreciated. I promise there is NOTHING fishy at all going on. THe guy will change his site if he absolutely has to but he really doesnt want to so thats why i said i had no control over it.someone has to know...

Please help me if you doI do stuff like this a lot.  Especially where I'm trying to provide SIMILAR inputs to multiple websites simultaneously.  It's a valuable labour-saving device.  Use the PHP cURL library.  Note the cURL can even handle cookies: Code: [Select]curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__).'/cookie.txt');



Discussion

No Comment Found