Wordpress search box not working.

Discussion in 'HTML & Website Design' started by Germz, Jun 24, 2009.

  1. #1
    	<div id="search">
    		<form method="get" id="searchform" action="<?php bloginfo('siteurl'); ?>">
    		<fieldset>
    			<input type="text" value="<?php the_search_query(); ?>" size="21" id="text" />
    			<input type="submit" value="Search" id="searchsubmit" /> 
    		</fieldset>
    		</form>
    		</div>
    PHP:
    This is my code and it's not working :(
    All it does is it takes you to my homepage
     
    Germz, Jun 24, 2009 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Maybe this will work:
    <input type="text" name="s" id="s" value="<?php the_search_query(); ?>" size="21" />
     
    Cash Nebula, Jun 24, 2009 IP
  3. Germz

    Germz Peon

    Messages:
    1,109
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah that was it thanks!
     
    Germz, Jun 25, 2009 IP