OK, as a continuation of my saga to get a page printed automatically, I have re-thought my ideas and this is what I would like to happen:-
User clicks on Add New
User fills in details of the new item
User clicks on Save
now for the good bit, main page reverts to the page before the clicking of the Add New button, by using this code
header("Location: nd_pupils_list.php?a=return");
exit();
also the print friendly page should open, currently done with this code
header("Location: 4Letter_print.php?recordid=".$keys["id_det"]);
exit();
At the moment I can go back to the list with the first bit of code or I can go to the printer friendly page with the second bit of code, is there any way I can get both to happen, so the main database page reverts to the list page AND a separate window with the print friendly page opens to allow the page to be printed?
The alternative is to get the printer friendly page to be called and printed out without any intervention from the user at all, then revert to the list page.
That is the absolute golden objective.
Any help please