LLeoun Posted March 25, 2009 Share Posted March 25, 2009 Hi all, Here's my index.php: <iframe src='http://www.differentServerFromParent.com/mypage.htm' scrolling='no' frameborder='0' allowtransparency='yes' ></iframe> mypage.htm (which in case you haven't notice the subtlety of the domain's name is hosted in a different server from index.php) has a js file that is sending myid 's value (myid is a dynamic variable) via post using jQuery's $.post like this: var theurl = "http://www.differentServerFromParent.com/proxy.php?proxy_url=http://www.serverWhereIndexIs.com/index.php"; $.post(theurl,{"myid":myid_value}); And using Troy Wolf's proxy.php (http://www.troywolf.com/articles/php/class_http/proxy.phps) I need to grab myid in index.php in order to use it there, please help!! In case it helps, Firebug's console says: The Post Tab shows myid and its value correctly every time a new id is posted. Then if I request and echo myid in index.php, the Response Tab for each id shows its value, but nothing is echoed in index.php it is echoed just in the Response Tab... Is the iframe causing trouble or the cross-browsing? Thanks a ton in advance!! Link to comment https://forums.phpfreaks.com/topic/151049-grabbing-a-variables-value-hosted-in-a-different-server/ Share on other sites More sharing options...
LLeoun Posted March 25, 2009 Author Share Posted March 25, 2009 Nobody? is it that the issue is not well explained or is it that it cannot be solved? Link to comment https://forums.phpfreaks.com/topic/151049-grabbing-a-variables-value-hosted-in-a-different-server/#findComment-793612 Share on other sites More sharing options...
Yesideez Posted March 25, 2009 Share Posted March 25, 2009 I've never heard of this - I don't think it can be done. Link to comment https://forums.phpfreaks.com/topic/151049-grabbing-a-variables-value-hosted-in-a-different-server/#findComment-793619 Share on other sites More sharing options...
LLeoun Posted March 25, 2009 Author Share Posted March 25, 2009 not even php curl ??? Link to comment https://forums.phpfreaks.com/topic/151049-grabbing-a-variables-value-hosted-in-a-different-server/#findComment-793620 Share on other sites More sharing options...
LLeoun Posted March 25, 2009 Author Share Posted March 25, 2009 Or what about sending myid to a php page in mypage.html server and then send the variable to the other server using the url ?? Could I do that ?? Link to comment https://forums.phpfreaks.com/topic/151049-grabbing-a-variables-value-hosted-in-a-different-server/#findComment-793621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.