I have a page in PHP with a form that contains multiple checkmarks. These checkmarks can be used to either DELETE the records or create LABELS for whatever is selected.
I got the delete section going just fine as I use the same page ($_SERVER['PHP_SELF']) to run a query, but the labels isn't working because I need to pass the values to another page called PDF_Label_Print.php. I would like to stay away from session variables if possible.
The page works, but sometimes it doesn't refresh automatically. Any ideas? Thanks!
if (isset($_GET['labels']) && (is_array($news_ids) && count($news_ids) > 0))
{
$label_list = implode(',', $news_ids);
echo "<form action='PDF_Label_Print.php' method='post' name='frm' target='_blank'>
<input type='hidden' name='full_list' value='". htmlentities(serialize($label_list)) ."' />
<input type='hidden' name='tbl_name' value='" . $_SESSION['officeid'] ."' />
<input type='hidden' name='report' value='list' />
<input type='hidden' name='avery' value='5160' />
</form>";
echo "<script language='JavaScript'>document.frm.submit();</script>";
// refresh page.
echo '<script language="javascript">window.location = "welcome.php"</script>';
}