Submitting a php form to a remote server

Permabanned
Joined
22 Apr 2007
Posts
1,805
Yo!

Now that my php skillz are uber l33t *cough* I was wondering if someone could answer a quick question for me.

Is it possible to submit the details entered to a server somewhere else?

I'd rather have personal details held on my own server rather than my hosting companies.

Ta
 
it surely is, in your HTML just point the action of your form to your server, run the processing PHP there, then redirect the user back to a confirmation message on the originating client server.
 
Code:
<form name="myform" action="http://www.remotesite.com/process.php" method="post">
<! -- form elements -->
</form>

Would work wouldn't it?

Jon
 
Back
Top Bottom