tommytomato Posted November 26, 2009 Share Posted November 26, 2009 Hi all I'm trying to get my search to work right, it's working now, but its not able to search the correct way Here is the default search form i have in my header <div class="header_nav_box"> <div id="searchform"> <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <p> <input name="submit" type="image" src="<?php bloginfo('stylesheet_directory');?>/images/search_button.gif" alt="search" /> </p> <p><input name="s" type="text" class="src_field" value="<?php the_search_query(); ?>" /></p> </form> </div> <div class="navigators"> I've installed a plugin to run on Word Press this plugin allows me to search my site or other sites using the search plugin that has index another sites the code that the plugin has given are <!--To search through Sphider--> <form method="get" id="searchform" action="<?php bloginfo('url'); ?>"> <label class="hidden" for="query"><?php _e('Search site for:'); ?></label> <div><input type="text" value="<?php the_search_query(); ?>" name="query" id="query" /> <input type="hidden" name="s" value="1" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form> <!--To search through WordPress--> <form method="get" id="searchform" action="<?php bloginfo('url'); ?>"> <label class="hidden" for="s"><?php _e('Search blog for:'); ?></label> <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form> I've tried a number of different ways to get it working with no go any one care to help us out please, I'm at at lost TT Link to comment https://forums.phpfreaks.com/topic/182987-search-forms/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.