Page 1 of 1

how to run a php file at the remote system

Posted: Thu Apr 17, 2003 5:42 am
by durgamallesh
Hi,
I have two php files file1 and file2.

file1 receives some data from the client.

Now i want to redirect this user information to file2 that is situated
at the remote system.

At the file2 the redirected information will be processed.

This process of redirecting will be automatically done as and when there comes information from the user to the file1.

Posted: Thu Apr 17, 2003 2:50 pm
by McGruff
I think you want file1 to display an html form with fields for user input. If you use the POST method (better than GET) when the submit button is clicked each of the form fields becomes a $_POST var with same name as the form field. Point the form action at file2 and process the $_POST vars there.

If you stick a line in file2:

print_r($_POST);

..that can help with debugging.