Well here is the problem that I'm having :
I have a web interface on this interface there are 3 frams (yes I know some ppl aren't too fund of frames...they however "work" for me).
In FRAME 1 the user is presented with a form to enter some data then press submit and the data gets inserted in a DB table.
The data in the DB table is presented in FRAME 2 (in a table form), this is done whenever the page is loaded (note that the table presented in FRAME 2 is created in a separate file and then included in FRAME 2 webpage i.e include("generate_table.php") )
In FRAME 3 the user is allowed to make selections from drop down menus and the based on the selections made query the data in the tables in FRAME 2 (well.....actually they are querying the DB table...but thats in the backend) the results that are returned are in the form of the same table in FRAME 2 thus I have reused the the generate_table.php code to represent the data returned by the user's query
The problem is that whenever the user submits a query
the table that is generated gets generated in FRAME 3..... 🙁 I wanted it to be generated in FRAME 2
In the FRAME 2 webage file this is essentially the algorithm that presents the data to the user :
if(query form is blank simply reload the query form if the button is pressed)
{
include("query_form.php");
}
else
{
include("generate_table.php");
}
}
else //this is supposed to occur when the page loads and when the "query_button" isn't pressed
{
//create SQL query for listing latest records in the DB
//then include table generation file
include("generate_table.php");
}
Note the reloaded form gets reloaded in the correct FRAME...i.e FRAME 3