Jump to content

[SOLVED] Reading and sending data between two sites


Friendlee

Recommended Posts

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

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

:), 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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.