Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Script form problem

    Helllo

    I have a wordpress site where I want to insert a zip form in the header and the results to be displayed inside the site.

    For a better understanding of what I want check this site below and use any zipcode ex 10014

    Code:
    www.aveauto.com
    I have the code for the form and another one that I have to put in the results page.
    EDIT: (these codes are from an affiliate I use...not mine)

    Zip form code

    Code:
    <!-- EXAMPLE ZIP CODE FORM -->
    <form action="results.html" method="get" >
    Zip Code: <input type="text" name="zipcode" size="10" maxlength="5" /><br />
    <input type="submit" name="search" value="Get Quotes" />
    </form>
    The code for the results page

    Code:
    <script type="text/javascript">
    function getQueryStringVariable(variable) {
    var query = window.location.search.substring(1);
    var vars = query.split('&');
    for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split('=');
    if (pair[0] == variable) {
    return pair[1];}}}
    
    ni_ad_client = "178760";
    ni_res_id = 2;
    ni_alt_url = "https://www.shmktpl.com/search.asp";
    ni_zc = getQueryStringVariable('zipcode');
    ni_str_state_code = getQueryStringVariable('statecode');
    ni_var1 = "";
    ni_display_width = 500;
    ni_display_height = 1000;
    ni_color_border = "";
    ni_color_bg = "";
    ni_color_link = "";
    ni_color_url = "";
    ni_color_text = "";
    </script>
    
    <script type="text/javascript" src="https://www.shmktpl.com/retrieve_listings.asp"></script>
    
    <noscript><a href="https://www.shmktpl.com/search.asp?src=178760&res=2"><img src="https://www.shmktpl.com/images/nojs/image.asp?src=178760&res=2" border="0"></a></noscript>
    I managed to make it working with a html page...but with php is a different story.Can anyone help me to make it work on a worpress site like the site above

    I've managed to make the zip form but showing the results is ..complicated for me as I don't know how to use it.I've tried at the site below to make it work..but I can't make the results page to be displayed corectly.

    Code:
    http://www.lowestcarinsuranceratesonline.com/
    Last edited by gr33n; 03-27-2010 at 09:37 PM.

  • #2
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    This may be helpful to you getting all the zips.

    http://www.wowebook.com/non-e-book/u...-database.html
    Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?

  • #3
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by masterofollies View Post
    This may be helpful to you getting all the zips.

    http://www.wowebook.com/non-e-book/u...-database.html
    I'm not searching for zipcodes...I'm searching how to integrate the results page from that form in the wordpress site.The code for the zipform and for the results are from an affiliate company not mine.

  • #4
    New to the CF scene
    Join Date
    Jan 2011
    Location
    Tennessee
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi, i am having this same problem...can anyone help me too


  •  

    Posting Permissions

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