...

View Full Version : Script form problem



gr33n
03-27-2010, 07:41 PM
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



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



<!-- 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



<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.



http://www.lowestcarinsuranceratesonline.com/

masterofollies
03-27-2010, 08:05 PM
This may be helpful to you getting all the zips.

http://www.wowebook.com/non-e-book/united-states-zip-codes-database.html

gr33n
03-27-2010, 08:36 PM
This may be helpful to you getting all the zips.

http://www.wowebook.com/non-e-book/united-states-zip-codes-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.

tnkdawg
01-15-2011, 10:05 PM
hi, i am having this same problem...can anyone help me too



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum