$.post("<?php echo $processLink; ?>", {data_host:sql_host,data_name:sql_name,data_user:sql_user,data_pass:sql_pass,data_sec:sql_sec,data_domain:data_domain}, function(results){
if (results == 1) {
$("#alert1").hide();
$("#alert2").show();
$("#index_1").hide();
$("#index_2").show();
}else{
$("#failMsg").html(results)
$("#alert1").show();
$("#index_1").show();
$("#index_2").hide();
alert(results);
}
changed.
$.post("<?php echo $processLink; ?>", {data_host:sql_host,data_name:sql_name,data_user:sql_user,data_pass:sql_pass,data_sec:sql_sec,data_domain:data_domain}, function(results){
$("#alert1").hide();
$("#alert2").show();
$("#index_1").hide();
$("#index_2").show();