The search function doesn't work
-
Hi,
I had a website running under WordPress. The problem is the “the research function deosn’t work. When i try to search a word it give me the index page and no results.
My searchform.php is :
<?php $search_text = empty($_GET['s']) ? "Search" : get_search_query(); ?> <div id="search"> <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/"> <input type="text" value="<?php echo $search_text; ?>" name="s" id="s" onblur="if (this.value == '') {this.value = '<?php echo $search_text; ?>';}" onfocus="if (this.value == '<?php echo $search_text; ?>') {this.value = '';}" /> <input type="image" src="<?php bloginfo('template_url'); ?>/images/search.gif" style="border:0; vertical-align: top;" /> </form> </div>
Thank you freinds.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘The search function doesn't work’ is closed to new replies.