searchform

Send Snippet To: Save this snippet to Code Collector Pro -- view all maeghan's snippets
language: PHP
license: GPL 2

Code for Snippet:

                
<!-- <?php if (!is_search()) {
 
		// Default search text
		$search_text = "Search";
 
	} else { $search_text = "$s"; }
?>
 
<div id="search-form">	
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>
</div>/search-form -->
comments powered by Disqus

Info

Tags: SocialMe Wordpress

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 661
Date Added: 2009-03-26 00:36:00
Last Modified: 0000-00-00 00:00:00

Web Analytics