Is it possible to validate a form without Javascript? Rest of my website is written in c# and asp.net and the server hosting my website doesn't allow Javascript. Is there any other ways to validate a form without this? Thanks!
function validateForm()
{
var x=document.forms["myForm"]["email"].value;
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
{
alert("Not a valid e-mail address");
return false;
}
}