Software: Apache. PHP/5.6.40 uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24 uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) Safe-mode: OFF (not secure) /home/cp949260/public_html/mgprodee.com/js/ drwxr-xr-x |
Viewing file: Select action/file-type: // Contact Form function validateForm() { var name = document.forms["myForm"]["name"].value; var email = document.forms["myForm"]["email"].value; var subject = document.forms["myForm"]["subject"].value; var comments = document.forms["myForm"]["comments"].value; document.getElementById("error-msg").style.opacity = 0; document.getElementById('error-msg').innerHTML = ""; if (name == "" || name == null) { document.getElementById('error-msg').innerHTML = "<div class='alert alert-warning error_message'>*Please enter a Name*</div>"; fadeIn(); return false; } if (email == "" || email == null) { document.getElementById('error-msg').innerHTML = "<div class='alert alert-warning error_message'>*Please enter a Email*</div>"; fadeIn(); return false; } if (subject == "" || subject == null) { document.getElementById('error-msg').innerHTML = "<div class='alert alert-warning error_message'>*Please enter a Subject*</div>"; fadeIn(); return false; } if (comments == "" || comments == null) { document.getElementById('error-msg').innerHTML = "<div class='alert alert-warning error_message'>*Please enter a Comments*</div>"; fadeIn(); return false; } var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { document.getElementById("simple-msg").innerHTML = this.responseText; document.forms["myForm"]["name"].value = ""; document.forms["myForm"]["email"].value = ""; document.forms["myForm"]["subject"].value = ""; document.forms["myForm"]["comments"].value = ""; } }; xhttp.open("POST", "php/contact.php", true); xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhttp.send("name=" + name + "&email=" + email + "&subject=" + subject + "&comments=" + comments); return false; } function fadeIn() { var fade = document.getElementById("error-msg"); var opacity = 0; var intervalID = setInterval(function () { if (opacity < 1) { opacity = opacity + 0.5 fade.style.opacity = opacity; } else { clearInterval(intervalID); } }, 200); } |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0106 ]-- |