how to run a php file at the remote system

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
durgamallesh
Forum Newbie
Posts: 1
Joined: Thu Apr 17, 2003 5:42 am
Location: hyderabad

how to run a php file at the remote system

Post 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.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post 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.
Post Reply