You can use curl for this.
But you might have other issues to think about. Cookies, sessions etc are set when a browser physically posts to the another url. These might not be set when post from the server. You also should check out screen scraping questions on SO for more on this.
Assuming this is not the case, you should be able to get the post, validate the fields, and repost using curl. There are many many examples of doing this.
edit
- post form to your server.php
- process/validate fields in server.php
- post validated parameters using curl to remote.service