/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<input type="text" onblur="if (this.value == '') {this.value = 'To search, type and hit enter';}" onfocus="if (this.value == 'To search, type and hit enter') {this.value = '';}" value="<?php if ($_REQUEST['s']) { the_search_query(); } else { echo 'To search, type and hit enter'; } ?>" name="s" id="s" />
</form>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                