send info without redirectoring to site

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Monad
Forum Newbie
Posts: 2
Joined: Thu Dec 18, 2003 11:30 am
Location: Pakistan
Contact:

send info without redirectoring to site

Post by Monad »

hi
i want to send info from one site for example one buy now button has some info i want to send to another site but when user click the buy now button he will not redirect to the site he will remain on the same site but only info will go to the other site and end user will b redirected to the checkout or anyother page on the same site.

Thanks in advance
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

When you send info from a form you decide where it s redirected... idon t really know what you mean.. but if it can help you can always look for
$_SERVER['PHP_SELF'] on google...
User avatar
igoy
Forum Contributor
Posts: 203
Joined: Fri May 02, 2003 11:57 pm
Location: India
Contact:

Post by igoy »

you can use Flash / iFrame / Frame / Javascript Remoting for this..

please check this similar post for more info...

viewtopic.php?t=15655


dunno if that will give you whole solution but might lead you some direction, also you can check this... if you want to know some coding of flash LoadVars

viewtopic.php?t=11509
User avatar
mrvanjohnson
Forum Contributor
Posts: 137
Joined: Wed May 28, 2003 11:38 am
Location: San Diego, CA

Post by mrvanjohnson »

Just off the cuff, if I were to do something like this. I would probably have the page kick of a exec() in the background and then have the page do a redirect. Then you can use PHP or Perl or whatever you want to send the information to the other site.
User avatar
Monad
Forum Newbie
Posts: 2
Joined: Thu Dec 18, 2003 11:30 am
Location: Pakistan
Contact:

Post by Monad »

thanks a lot guys

igoy i dont want to use flash. by the way in asp v can do this iwth Microsoft XML HTTP object and u can get detail code from there

http://www.goemerchant.com/techsupport/ ... on=gateway

i want a solution like that please.

Draco_03

i just want to send info to another site from a site and want the end user to remain on the same site
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

You can always use [php_man]cURL[/php_man] extension to emulate redirect.
Post Reply