I have a page that displays both a table of Quotes as well as a form to add/edit a quote. Each row has an Edit link. I have my pages broken up like this...
manage_quotes_view.php - handles the display of the view. Uses DAO object to get all quotes for the table
manage_quotes_action.php - handles all the actions (add/edit/delete/publish).
manage_quotes.tpl - the Smarty template for the view.
When I click the edit link I use my DAO to grab the correct quote based on the id. The problem is that since my view.php is in charge of displaying the page, what is the best way to get the quote data from the action.php to the _view.php? Do I have to use the session to do this? Or is there another fancy way? Currently I am using header("Location: manage_quotes_view.php"); to redirect to the view page. Do I need to do it differently and supply query string params?
Should I be going about this completely differently?
Thanks.
Gregg