function headerAndSearchCode() { if (isset($_GET['keywords'])) { $default = htmlentities($_GET['keywords']); } if (isset($_GET['category']) && isset($_GET['keywords'])) { $category = $_GET['category']; $keywords = $_GET['keywords']; if ($keywords == 'All Categories') { header("Location: search.php?y={$category} "); } else { header("Location: search2.php?y={$category}&yy={$keywords}"); } } echo ' <header id = "main_header"> <div id = "rightAlign"> '; topRightLinks(); //links will be here echo "\n </div>\n <a href = 'index.php'><img src = \"images/mainlogo.jpg\"></a>\n </header>\n\n\n <div id = 'top_search'>\n <form name = 'input' action = '#' method = 'GET'>\n <input type ='text' id ='keywords' name = 'keywords' size = '100' class = 'searchBox'\n value = \"All Categories\"> \n <select id = 'category' name = 'category' class = 'searchBox'>\n "; // include categories here createCategoryList(); echo "\n </seclect>\n <input type = 'submit' value =' Search ' class= 'button'>\n </form>\n </div>\n "; }
function headerAndSearchCode() { echo ' <header id="main_header"> <div id="rightAlign"> '; //Top right links will go here topRightLinks(); echo "\r\n\t\t\t\t</div>\r\n\t\t\t<a href=\"mainLanding.php\"><img src=\"C:/Xampp/htdocs/ProjectX/images/home.png\"></a>\r\n\t\t\t</header>\r\n\t\t\t"; }
function headerAndSearchCode() { $defaultText = 'Search'; $defaultText = htmlentities($_GET['keywords']); echo ' <header id="main_header"> <div id="rightAlign"> '; topRightLinks(); echo "\n\t\t\t</div>\n\t\t\t<h1> CHANDAN A V </h1>\n\t\t\t</header>"; }
function headerAndSearchCode() { $defaultText = htmlentities($_GET['keywords']); echo ' <header id="main_header"> <div id="rightAlign"> '; topRightLinks(); echo "\n\t\t\t</div>\n\t\t\t<a href=\"index.php\"><img src=\"images/mainLogo.png\"></a>\n\t\t</header>\n\t\t\n\t\t<div id=\"top_search\">\n\t\t\t<form name=\"input\" action=\"search.php\" method=\"get\">\n\t\t\t\t<input type=\"text\" id=\"keywords\" name=\"keywords\" size=\"100\" class=\"searchBox\" value=\"{$defaultText}\"> \n\t\t\t\t<select id=\"category\" name=\"category\" class=\"searchBox\">\n\t"; createCategoryList(); echo ' </select> <input type="submit" value="Search" class="button" /> </form> </div> '; }