Thanks! We've forwarded your message to someone important sounding in the CU.

"; $msg .= "

They should get back to you shortly.

"; } else { $msg = "Sorry, something broke. Please try again later or email us directly."; } } else { $msg = ""; $msg .= ''; $msg .= ''; $msg .= ''; $msg .= ''; $msg .= '
Name:
Email:
Message:'; $msg .= '
 
'; } //////////////////////////////////////////////////////////////////////////////// // 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', "Contact Us"); // 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'); ?>