Thanks. You have been signed up. You should start receiving emails as soon as "; $msg .= "the next one is sent - usually Monday during term time
"; $msg .= ''; } else { $msg = "Sorry, something broke. Please try again later or email us directly."; } //////////////////////////////////////////////////////////////////////////////// // define some variables, so that if they are not using we don't get errors $insideSections = array(); $sectionPages = array(); //////////////////////////////////////////////////////////////////////////////// // get the nav bar links $sql = "SELECT * FROM sections WHERE parent = 'ROOT'"; $result = $mysql->query($sql); $navSections = array(); while ($row = mysql_fetch_array($result)) { $navSections[$row['id']]['id'] = $row['id']; $navSections[$row['id']]['name'] = $row['name']; } //////////////////////////////////////////////////////////////////////////////// // Assign contents to variables for the template $smarty->assign('title', "Mailing List Signup"); // This is the page title, as displayed in the title bar $smarty->assign('content', $msg); // This is the page content! $smarty->assign('navSections', $navSections); // This is the links for the navigation bar $smarty->assign('insideSections', $insideSections); // This is for the sub-sections of this section $smarty->assign('sectionPages', $sectionPages); // This is for all the pages which belong to this category //////////////////////////////////////////////////////////////////////////////// $smarty->display('page.tpl'); } else { // can't find any info header("Location: index.php"); } ?>