rpjd
03-02-2011, 10:52 AM
I have a page1.php which contains a post form and a page2.php which displays results. I have a seperate php script file that processes the form data and queries the database. What is the best, most efficient way of processing? Once the php script finishes querying the database, I would end up with, assuming the query returns a result,
while($result = mysql_fetch_assoc($query))
how do I get the data to the display page? Looking for examples I found one approach which is to have a go-between file which looks like this:
<?PHP
include_once(process.php);
process($_POST);
display_results;
?>
Can someone explain the display_results part? Is this a form of redirect? Any words of wisdom appreciated.
while($result = mysql_fetch_assoc($query))
how do I get the data to the display page? Looking for examples I found one approach which is to have a go-between file which looks like this:
<?PHP
include_once(process.php);
process($_POST);
display_results;
?>
Can someone explain the display_results part? Is this a form of redirect? Any words of wisdom appreciated.