Get Website Lowest price!

Wordpress Experts!

×

php up to date

City based search result osclass

Geting City based search result in osclass


<form action="<?php echo osc_base_url(true); ?>" method="get" class="search" onsubmit="javascript:return doSearch();">
    <input type="hidden" name="page" value="search" />
    <fieldset class="main">
             <input type="text" name="sCity"  id="sCity" value="<?php _e('Enter your city here'); ?>" />
        <?php  if ( osc_count_categories() ) { ?>
            <?php osc_categories_select('sCategory', null, __('Select a category', 'modern')); ?>
        <?php  } ?>
        <button type="submit"><?php _e('Search', 'modern'); ?></button>
    </fieldset>
    <div id="search-example"></div>
</form>

Just add this code where ever you want i place it in a header

output is



SHARE

mani kandan

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment