Topic: Problem with the search box
Hey there!
My search box is not working. When I try to search something, it doesn't return any result.
The code I'm using for the search box is:
<!-- The Quick Search Form -->
<form method="post" action="artigo.php?subaction=search">
<input type="text" name="story" size="24">
<input type="hidden" name="do" value="search">
</form>
<!-- End of the Search Form -->
artigo.php is the page where the full story texts appear
And the code I'm using to show the news is:
<?php
$number="10";
$template="Principal";
$only_active=TRUE;
$start_from="3";
$PHP_SELF = 'artigo.php';
if($_POST['do'] == "search" or $_GET['dosearch'] == "yes"){ $subaction = "search"; $dosearch = "yes"; include("/home/a7334692/public_html/cutenews/search.php"); }
else{ include("/home/a7334692/public_html/cutenews/show_news.php"); }
?>