My teamspeak module is malfunctioning slighty and i need a little help forming a proper if state to produce the proper url needed for logging in properly.
Basically this is the current code for the login button.
You must first be a
registered member to view any code.
Well only 2 of the login boxes can be used at a time. with one being left blank. The problem is the blank one leaves an empty field in the url which causes you to login as guest1
so i need an if statement.
If the nickname box is left blank then the url should look like this
'teamspeak://IP

ORT'+ '?LoginName=' + TSLogin.lname.value + '?Password=' + TSLogin.servpw.value
And if the login name box is left blank then the url should look like this
location.href='teamspeak://IP

ORT'+ '?NickName=' + TSLogin.nname.value + '?Password=' + TSLogin.servpw.value
As you can see, the field from the blank box on the form shouldnt be shown in the url. So i need an if statement of some kind that says "if this box is left blank, then use this url syntax, or if the other box is left blank, then use this url syntax instead"
Anyone know what i need to do? cause i dont know the proper formations of this needed if statement
