+ Reply to Thread
Results 1 to 5 of 5

Thread: snippet search by zip code

  1. #1
    Join Date
    Aug 2007
    Location
    Jacksonville, FL
    Posts
    117

    Default snippet search by zip code

    Is it possible to create snippets that search by zip code?

    What is the syntax?

  2. #2
    Join Date
    Aug 2007
    Location
    Jacksonville, FL
    Posts
    117

    Default Re: snippet search year built

    Can I also do snippets by year built?

    I want to target some historic homes that were built in the 1920s and 1930's


    what would be ideal in a snippet for me


    max_year_built
    min_year_built

    If this exists already, please tell me how to map to it in a snippet

  3. #3
    Aaron is offline Real Estate Webmasters Staff Aaron's Most Recent Blog Entry: Email etiquette Aaron is on a distinguished road
    Join Date
    Jun 2005
    Location
    Nanaimo
    Posts
    23,433

    Default Re: snippet search by zip code

    Zip code should be

    $_REQUEST['search_zip'];

    Year Built -

    $_REQUEST['minimum_year'];
    $_REQUEST['maximum_year'];

    These "should" work - I didn't test them on your site - but in theory they should work.
    Aaron
    Real Estate Webmasters ( Programming )
    Client Resources | Tutorials | Suggested Enhancements

  4. #4
    Join Date
    Aug 2007
    Location
    Jacksonville, FL
    Posts
    117

    Default Re: snippet search by zip code

    no luck on the ZIP snippet

    Here is my snippet:

    <?php

    $_REQUEST['snippet'] = true;
    $_REQUEST['page_limit'] = 10;
    $_REQUEST['minimum_price'] = '';
    $_REQUEST['maximum_price'] = '410000';
    $_REQUEST['search_zip']='32223';


    $_REQUEST['idx'] = 'residential';

    include_once $_SERVER["DOCUMENT_ROOT"]."/idx/common.inc.php";
    include_once $_SERVER["DOCUMENT_ROOT"]."/idx/pages/snippet.php";

    ?>

    Here is the page with the results:
    http://www.sunshinestatesales.com/zip.php

    it does not trigger the zip code

  5. #5
    Join Date
    Aug 2007
    Location
    Jacksonville, FL
    Posts
    117

    Default Re: snippet search by zip code

    nevermind, the zip code is working....I was missing the ''

    $_REQUEST['search_zip']='32205'; works fine

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts