Code:
Searchform.php <form method="get" class="searchform" action="<?php echo esc_url( home_url() ); ?>/">' <table class="searchform" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="searchfield"> <input type="text" class="text inputblur" value="<?php esc_attr( the_search_query() ); ?>" name="s" /> </td> <td class="searchbutton"> <input name="submit" value="Search" type="image" src="<?php echo get_template_directory_uri(); ?>/images/magnifier2-gray.gif" style="display: block; border:none; padding: 0 0 0 5px; margin: 0;" /> </td> </tr></table> </form>
Code:
Search.php <?php global $options; foreach ($options as $value) { if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option( $value['id'] ); } } if ( is_page() ) { global $wp_query; $current_page_id = $wp_query->get_queried_object_id(); } ?> <?php get_header(); ?> <p align="center">Your search for '<strong><font color="#FF0000"><? echo $_GET["s"] ?></font></strong>' returned the following results:</p> <!-- GOOGLE Search results Code Generated by Google is Here --> <?php get_footer(); ?>