Brian Harrington - Creating Dynamic Content based on yo=ur subdomains (up to 4) and/or user/browser language.<br>
[text]HOSTEND=3D=
[countchars][HOST][/countchars][/text]
[text]Dot1=3D[FindString sour=ce=3D[getchars start=3D1&end=3D[HOSTEND]][HOST][/getchars]&find=3D.=][/text]
[text]Dot2=3D[FindString source=3D[getchars start=3D
[math][Dot1=]+1[/math]&end=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text]
[t=ext]Dot3=3D[FindString source=3D[getchars start=3D
[math][Dot1]+[Dot2]+1[/ma=th]&end=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text]
[text]Dot=4=3D[FindString source=3D[getchars start=3D
[math][Dot1]+[Dot2]+[Dot3]+1[/ma=th]&end=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text]
[text]Dot=5=3D[FindString source=3D[getchars start=3D
[math][Dot1]+[Dot2]+[Dot3]+[Dot4=]+1[/math]&end=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text]
[t=ext]Dot6=3D[FindString source=3D[getchars start=3D
[math][Dot1]+[Dot2]+[Dot3=]+[Dot4]+[Dot5]+1[/math]&end=3D[HOSTEND]][HOST][/getchars]&find=3D.=][/text]
[Showif [Dot1]>0][Showif [Dot2]=3D0]
[text]DOTS=3D1[/text=][/Showif][/Showif]
[Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot=3]=3D0]
[text]DOTS=3D2[/text][/Showif][/Showif][/Showif]
[Showif [Dot1]&g=t;0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]=3D0]
[text]DOTS==3D3[/text][/Showif][/Showif][/Showif][/Showif]
[Showif [Dot1]>0][Sho=wif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]>0][Showif [Dot5]=3D0]=
[text]DOTS=3D4[/text][/Showif][/Showif][/Showif][/Showif][/Showif]
[Show=if [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]>0]=[Showif [Dot5]>0][Showif [Dot6]=3D0]
[text]DOTS=3D5[/text][/Showif][/Show=if][/Showif][/Showif][/Showif][/Showif]
[text]SubHost1=3D[/text]
=
[text]SubHost2=3D[/text]
[text]SubHost3=3D[/text]
[text]SubHost4=3D[/=text]
[Showif [DOTS]=3D1]
[text]TLD=3D[getchars start=3D
[math][Do=t1]+1[/math]&end=3D[HOSTEND]][HOST][/getchars][/text]
[text]HOST2=3D=[getchars start=3D1&end=3D
[math][Dot1]-1[/MATH]][HOST][/getchars][/text=]
[/Showif]
[Showif [DOTS]=3D2]
[text]SubHost1=3D[getchars sta=rt=3D1&end=3D
[math][Dot1]-1[/math]][HOST][/getchars][/text]
[text]HO=ST2=3D[getchars start=3D
[math][Dot1]+1[/math]&end=3D
[math][Dot1]+[Dot2]=-1[/MATH]][HOST][/getchars][/text]
[text]TLD=3D[getchars start=3D
[math][=Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars][/text]
[/Sho=wif]
[Showif [DOTS]=3D3]
[text]SubHost2=3D[getchars start=3D1&=;end=3D
[math][Dot1]-1[/math]][HOST][/getchars][/text]
[text]SubHost1=3D[=getchars start=3D
[math][Dot1]+1[/math]&end=3D
[math][Dot1]+[Dot2]-1[/mat=h]][HOST][/getchars][/text]
[text]HOST2=3D[getchars start=3D
[math][Dot1]=+[Dot2]+1[/math]&end=3D
[math][Dot1]+[Dot2]+[Dot3]-1[/MATH]][HOST][/getc=hars][/text]
[text]TLD=3D[getchars start=3D
[math][Dot1]+[Dot2]+[Dot3]+1[=/math]&end=3D&end=3D[HOSTEND]][HOST][/getchars][/text]
[/Showif]=
[Showif [DOTS]=3D4]
[text]SubHost3=3D[getchars start=3D1&end==3D
[math][Dot1]-1[/math]][HOST][/getchars][/text]
[text]SubHost2=3D[getc=hars start=3D
[math][Dot1]+1[/math]&end=3D
[math][Dot1]+[Dot2]-1[/math]][=HOST][/getchars][/text]
[text]SubHost1=3D[getchars start=3D
[math][Dot1]+=[Dot2]+1[/math]&end=3D
[math][Dot1]+[Dot2]+[Dot3]-1[/math]][HOST][/getch=ars][/text]
[text]HOST2=3D[getchars start=3D
[math][Dot1]+[Dot2]+[Dot3]+1=[/math]&end=3D
[math][Dot1]+[Dot2]+[Dot3]+[Dot4]-1[/MATH]][HOST][/getcha=rs][/text]
[text]TLD=3D[getchars start=3D
[math][Dot1]+[Dot2]+[Dot3]+[Dot=4]+1[/math]&end=3D&end=3D[HOSTEND]][HOST][/getchars][/text]
[/Sh=owif]
[Showif [DOTS]=3D5]
[text]SubHost4=3D[getchars start=3D1&am=p;end=3D
[math][Dot1]-1[/math]][HOST][/getchars][/text]
[text]SubHost3=3D=[getchars start=3D
[math][Dot1]+1[/math]&end=3D
[math][Dot1]+[Dot2]-1[/ma=th]][HOST][/getchars][/text]
[text]SubHost2=3D[getchars start=3D
[math][D=ot1]+[Dot2]+1[/math]&end=3D
[math][Dot1]+[Dot2]+[Dot3]-1[/math]][HOST][/=getchars][/text]
[text]SubHost1=3D[getchars start=3D
[math][Dot1]+[Dot2]+=[Dot3]+1[/math]&end=3D
[math][Dot1]+[Dot2]+[Dot3]+[Dot4]-1[/math]][HOST]=[/getchars][/text]
[text]HOST2=3D[getchars start=3D
[math][Dot1]+[Dot2]+[=Dot3]+[Dot4]+1[/math]&end=3D
[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]-1[=/MATH]][HOST][/getchars][/text]
[text]TLD=3D[getchars start=3D
[math][Dot=1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=3D&end=3D[HOSTEND]][HOS=T][/getchars][/text]
[/Showif]
[text]Domain=3D[HOST2].[TLD][/text=]
<hr>
Lingo=3D[Lingo] (2 Letter)<br>
ThisURL=3D[t=hisurl] (aka File Path)<br>
WWW=3D[WWW]<br>
HOST=3D[HOST]=<br>
DOTS=3D[DOTS]<br>
HOST2=3D[HOST2]<br>
TLD==3D[TLD]<br>
SubHost1 =3D[SubHost1]<br>
SubHost2=3D[SubHo=st2]<br>
SubHost3=3D[SubHost3]<br>
SubHost4=3D[SubHost4]&=lt;br>
Domain=3D[Domain]
<hr>
----------------------=----------------------------------
--
Brian Harrington
Auto Glass Xpress
2=655 Millersport Hwy. Suite 1063
Getzville, NY 14068
(71=6) 861-2029