AOP Web Development
If you specify site2 in the action of your form tag, yes.
but i think login problem may occure (also the SID, User's username etc conflict will create problem). But may be you are correct because i dont have experience of it.
Hmm, I think what imagefree is getting at is that while you can do this with form submissions, you have to be aware of exactly what information is transmitted between servers.
So, basically ONLY things which are sent directly with the form are available - ie things you access with $_POST['VarNameHere'].
Anything like $_SESSION session variables will not be transfered because these are for use by the local server only.
This is true, but you can fix this with by adding <hidden> items to your form.
Add something like this...
That will go through a loop adding every piece of the $_SESSION array to your form, and shoot it over to your new site. Then you just need the form processing page to pick out the important info and put it back into a new $_SESSION array.
Just don't try to transfer session IDs! They should always be generated by the server. Walkere's script will still be the simplest way to transfer any variables. Just remember not to assign the 'id' value on the other side.
yup u can post values from form on one site to a php script on a different server....u surely can!!!