Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing on GET/POST vars

Status
Not open for further replies.

Kareem

Programmer
Nov 11, 2002
13
0
0
CH
Hi

Following scenario:

I get GET Variables to a site. Depending on the value of some variables I want to send all the variables to site A or B.

How can this be done in an easy way. Until now I sent them using header() by adding the content of the vars into the url-header with ...&var1='.$GET[var1]&var2='$GET.....

With many vars quite a pain...

How can this be done with GET but also with POST vars?

Any suggestions?
 
You might look at faq434-2502

Keep in mind that you can simultaneously send GET-method information on the URL and POST-method information through the connection.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Hi Kareem,

You can use curl function when you want to send the value to other site without having other page to display.
Goto and search for curl inside the function. From there, you can learn on how to use it.
Hope it helps.



--
Mike FN
"8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Web Programmer."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top