Friendlee Posted May 2, 2007 Share Posted May 2, 2007 Hi guys, My first post, hope this is the place to get answers . Here is the issue: I have two sites say Site1 and Site2. Site1 has a database to store data about schools. Site 2 has a form where i need to show school names in a drop down list for users to select any one. I am doing this using IFrame, it shows data perfectly (as far as i am concerned ). Second part of this issue is that once submitted all the data (including selected school) should pass back to a php script on Site1. This is what I am unable to acheive, seems IFrame is not the right choice to show data on Site2 for submission back to Site1. Any help guys? regards Link to comment https://forums.phpfreaks.com/topic/49575-solved-reading-and-sending-data-between-two-sites/ Share on other sites More sharing options...
trq Posted May 2, 2007 Share Posted May 2, 2007 I don't see any problems with what you describe. Can wee see the code for the form? Link to comment https://forums.phpfreaks.com/topic/49575-solved-reading-and-sending-data-between-two-sites/#findComment-243052 Share on other sites More sharing options...
Friendlee Posted May 2, 2007 Author Share Posted May 2, 2007 sure! here it is. this form (on site2) shows data fine, but when submitted "testfield1" values goes okay, as I can see it using $_POST["testfield1"]. But chosen value from the drop down list doesn't show up. <table width="600" border="0" align="center" cellpadding="0" cellspacing="8"> <form name="form1" method="post" action="http://www.site1.com/test-process-school-post.php" onSubmit="return valid(this)"> <tr> <td valign="top"><h3>School Data</h3></td> </tr> <tr> <td valign="top"><input name="testfield1" type="text"> </td> </tr> <tr> <td valign="top"> <IFRAME src="http://www.site1.com/test-pass-school.php" width="200" height="200" scrolling="no" frameborder="0"> </IFRAME> </td> </tr> <tr> <td valign="top"><input type="submit" name="Submit" value="Submit"></td> </tr> </form> </table> thanx in advance Link to comment https://forums.phpfreaks.com/topic/49575-solved-reading-and-sending-data-between-two-sites/#findComment-243066 Share on other sites More sharing options...
trq Posted May 2, 2007 Share Posted May 2, 2007 No... that won't work like that. I think you would need to put the entire form within the same iframe. Are both these servers php enabled? Link to comment https://forums.phpfreaks.com/topic/49575-solved-reading-and-sending-data-between-two-sites/#findComment-243079 Share on other sites More sharing options...
Friendlee Posted May 2, 2007 Author Share Posted May 2, 2007 yes indeed, both are php enabled, though these are on shared hosting, so have no control over php settings Link to comment https://forums.phpfreaks.com/topic/49575-solved-reading-and-sending-data-between-two-sites/#findComment-243112 Share on other sites More sharing options...
trq Posted May 2, 2007 Share Posted May 2, 2007 Then why don't you just write scripts on site2 that connect to the same database as site1.? Link to comment https://forums.phpfreaks.com/topic/49575-solved-reading-and-sending-data-between-two-sites/#findComment-243164 Share on other sites More sharing options...
Friendlee Posted May 2, 2007 Author Share Posted May 2, 2007 , I think term "shared hosting" lead to confusion. By shared hosting i meant they are not using dedicated server solution or something on these lines. Actually both sites reside on 2 different servers and MySQL is taking care of database needs for Site1. I repeat both sites or on 2 different servers, 2 different hosting companies as well. Link to comment https://forums.phpfreaks.com/topic/49575-solved-reading-and-sending-data-between-two-sites/#findComment-243218 Share on other sites More sharing options...
Friendlee Posted May 2, 2007 Author Share Posted May 2, 2007 come on guys! release some pressure of me , any solution? Link to comment https://forums.phpfreaks.com/topic/49575-solved-reading-and-sending-data-between-two-sites/#findComment-243637 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.