Ok, here is the situation.
I have a PHP page that is invocated as a result of an HTML form.
This PHP page queries a database, and then calls another PHP function to display the results.
This function needs to create a form to accept some input, which modifies the data it is displaying (sorts it in a different order).
What I want to do now is tohave this form invoke the function again to redisplay the result. But, from what I can tell, a form action directive can only take the name of a PHP file, not a PHP function.
I could set up a dummy file that the form action could point to. That file would simply call the function data display function. Except, how do I get the original data (query results) back into the function call?
I suppose I could do it with global vatiables, but that seems very kludgy.
Any other ideas/suggestions?
Thanks
I have a PHP page that is invocated as a result of an HTML form.
This PHP page queries a database, and then calls another PHP function to display the results.
This function needs to create a form to accept some input, which modifies the data it is displaying (sorts it in a different order).
What I want to do now is tohave this form invoke the function again to redisplay the result. But, from what I can tell, a form action directive can only take the name of a PHP file, not a PHP function.
I could set up a dummy file that the form action could point to. That file would simply call the function data display function. Except, how do I get the original data (query results) back into the function call?
I suppose I could do it with global vatiables, but that seems very kludgy.
Any other ideas/suggestions?
Thanks