Reply to Re: POST Method

Your name:

Reply:


Posted by Ron Barnett on 10/03/06 17:54

<ocbermudez@gmail.com> wrote in message
news:1159896669.296066.220020@i42g2000cwa.googlegroups.com...
> Hi, I need to make some interaction between 2 diferents php site.
> For that, in 1 site I have a php function, it wait for some values on
> the POST method. It verify the value and return a xml with the result
> and one unique ID if all is well or the error code. This function I can
> not modify it and I can not any access, I can only use it.
> In my side I try to do a form with all values, put in the action the
> url and submit button, but I was able to catch and work with xml,
> always the xml is show in the browser, I wan not do that, I can catch
> the xml, work with the xml and show some information on the browser.
> (all in the same page)
> Some people know how can I do that?
> thanks.
> Omar.

Hi Omar,

To stop the xml data from appearing in the browser, you need to send the
post from the PHP server instead.

the way to do this is to use Curl.
take a look at www.php.net and search for Curl.
There is I think a Pear library for it too

just make sure you capture the inbound data in a variable and process it
from there, the default is to put it on the screen.

Cheers,

Ron Barnett
IT Support for Business
www.rjbarnett.co.uk

-----------------------------------------------------------------------------------------
For labellers and labelling supplies visit www.labelzrus.co.uk

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация