What is wrong with this sidebar searchform???
-
I would like to add a search form manually (not through the dynamic searchbar function)
To do this I have the following code in the sidebar to call the search form:
-
<div id=”searchform” style=”margin:10px 0px;>
<?php get_search_form(); ?>
</div>And here is the search form:
<form method=”get”>
<form method=”get” class=”searchform” action=”<?php bloginfo(‘url’); ?>/”>
<table class=”searchform” cellpadding=”0″ cellspacing=”0″ border=”0″>
<tr>
<td class=”searchfield”>
<input type=”text” class=”searchtext” value=”<?php the_search_query(); ?>” name=”s” />
</td>
<td class=”searchsubmit”>
<input class=”submit” name=”submit” value=”Search” type=”image” src=”<?php echo get_bloginfo(‘template_directory’); ?>” />
</td>
</tr></table>
</form>The only way I can get this working is if I add an extra <form method=”get”> before the existing one.?! Without it the search function does not work.
Please help if you know why this is happening.
Jimmy Wong-Fu
- The topic ‘What is wrong with this sidebar searchform???’ is closed to new replies.