Skip to main content

Ivan Teoh

Something personal yet public

58-searchform.php

(Source)

<?php
/**
 * @package WordPress
 * @subpackage Your_Theme
 */
?>
<form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
    <label for="s"><?php _e('Search'); ?></label><br />
    <input id="s" type="text" name="s" value="<?php the_search_query(); ?>" />
    <input id="searchsubmit" type="submit" value="<?php _e('Search'); ?>" />
</form>