# \[PHP\] POSTing to another site

**URL:** <https://forum.kirupa.com/t/php-posting-to-another-site/97674>\
**Category:** Uncategorized\
**Created:** [December 27, 2003, 12:21pm UTC](https://forum.kirupa.com/t/php-posting-to-another-site/97674 "2003-12-27T12:21:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![955](https://avatars.discourse-cdn.com/v4/letter/9/4bbf92/32.png) [@955](https://forum.kirupa.com/u/955)\
**Post date:** [December 27, 2003, 12:21pm UTC](https://forum.kirupa.com/t/php-posting-to-another-site/97674/1 "2003-12-27T12:21:22Z")

</div>

I’m writing a blog, and I want to make sure that all my pages validate as XHTML. I want to let people post comments, but they might not post validating HTML.

So I thought I’d use the W3’s XHTML validator(saves me a lot of work)

The problem with this is that the W3’s XHTML validator accepts data via POST only, and not GET:trout:.

Does anyone know how I can send info to another page on a whole different server using POST, and then read the data sent back?

I know how to use fopen() to manipulate data for GET pages, it’s just POST that is the problem.

Thanks 🙂
