Jump to content

Search forms


tommytomato

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.