9
synack
7y

Just know that this is out there somewhere:

// JavaScript Document

//verify redirect
function verifySubmit(){
//get a handle on the form and check terms and conditions is selected , if not raise something
var cb = document.getElementById('termsandconditions')
if (cb.checked == true)
{
//the box is checked , redirect user to access controller
window.location = "http://192.168.101.1/goInternet.php"

}

if (cb.checked == false)
{

//the box is not checked , do not redirect user to access controller

}

}

Comments
  • 2
    Mixing double quotes and single quotes should be a criminal offense.
    Also using cb for checkbox and not the universal CALLBACK UGGGGGHHHH
Add Comment