cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual SmartZone html login form example

Anonymous
Not applicable
Does someone has a captive portal login form with POST action and required hidden fields example to use with VirtualSmartZone?

Thanks!
6 REPLIES 6

vivek_gupta_eaj
New Contributor III
Hi Cristiano,

May be you can you try this below . Replace x.x.x.x with the ZD IP address.

 
Wireless Internet Service 
 

Wireless Internet Service

 
" rel="nofollow" target="_blank" title="Link http//172181102319997/login">http://x.x.x.x:9997/login">; 
 
 
 
 
Username:
Password:
 
 
 

Regards,
Vivek Gupta

Anonymous
Not applicable
Thanks! I'm going to use this with Zone Director.

Anonymous
Not applicable
Hi.

If you use above code, you'll meet failure to authentication because SZ an ZD have different form code.


----------------------------------------------



Wireless Internet Service

function get_param(name)
{
    if (location.href.indexOf("?") >= 0) 
    { 
        var query=location.href.split("?")[1];
        var params=query.split("&");
        for (var i = 0; i < params.length; i ++) {
             value_pair=params[i].split("=");
            if (value_pair[0] == name)
                 return unescape(value_pair[1]);
        }
    }
    return "";
}
function get_sip() {
    var sip = get_param("sip");
   //var sip = "172.21.144.65"; -----> if you need to static ip, write the ip here


    if (sip.indexOf(":") < 0) { // IPv4 address
        return sip;
    } else {                    // IPv6 address
        return '[' + sip + ']';
    }
}






Wireless Internet Service for SmartZone



document.write('
http://' + get_sip() + ':9997/SubscriberPortal/hotspotlogin">');
document.write('');
document.write('');
document.write('');
document.write('');


Username:
Password:







----------------------------------------------

Above code will be parsing to controller ip automatically.

Regards.

Anonymous
Not applicable
Thanks! This is the correct example for Virtual SmartZone. Worked ok!