Form code
Hello everyone,
First post and I hope not too stupid of one.
I have a site that is being tested out with the domain name of:
quotenc. com/ index2.html
There is a mini-form to fill out and it should yield a corresponding page corresponding to the choice (auto,home,life,motorcycle, etc). However, all it does is yield the correct state and health insurance. It seems that health insurance is default for some reason and it is not calling the other variable of the form. Here is the code from my 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 = "2261";
ni_res_id = 2;
ni_alt_url = "nextinsure .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>
There is more code to that page but I think the issue lies within here. It someone can help me add a line or two of code I would greatly appreciate and I look forward to helping other out of this forum. Thanks
edit - I removed the url links because I cannot post them yet, buti think the problem is in the code above
|