What am I doing wrong here...? =/
<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
if(Math.floor(Math.random()*2) == 1)
window.location="zzz2.com/?zip=" + geoip_postal_code();
else
window.location="zzz1.com/?zip=" + geoip_postal_code();
</SCRIPT>
</HEAD>
for some reason the zip code doesnt show up when i am redirected to either page. not sure what im doing wrong :angryfire:
im sure this will take one second for you js experts to figure out. lol thanks in advance
<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
if(Math.floor(Math.random()*2) == 1)
window.location="zzz2.com/?zip=" + geoip_postal_code();
else
window.location="zzz1.com/?zip=" + geoip_postal_code();
</SCRIPT>
</HEAD>
for some reason the zip code doesnt show up when i am redirected to either page. not sure what im doing wrong :angryfire:
im sure this will take one second for you js experts to figure out. lol thanks in advance