Before submitting a form onclick="return check_internet_conn()" is called to see if there is an internet connection, (I will be doing this on a mobile device, xamp