Simple PHP Post to another script.... I must be retarded
Posted 10 October 2006 - 02:50 PM
I have a php file, test.php, and I want to send a simple post to another php file on other server, and get a return. So something this.
Call test.php > auto post www.mydomain.com/test2.php?myVar=200 > return from www.mydomain.com/test2.php to test.php return=true > test.php returns return=true
Thanks for any help!
Posted 10 October 2006 - 02:56 PM
Posted 10 October 2006 - 03:15 PM
You might be wanting to include the second script. If this is the case, you can use functions from the second script, but all returns need passing through an array: return $whatever.
Third option, if you're wanting to just bounce a user backwards and forwards between scripts, you could just use a simple refer?
Posted 10 October 2006 - 03:55 PM
Posted 10 October 2006 - 04:01 PM
is that what you are talking about?
Business Website: http://www.infotechnologist.biz
Personal Website: http://www.joyelpuryear.com
Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.
Posted 10 October 2006 - 04:02 PM
Posted 10 October 2006 - 04:46 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users