I currently have a working email form using PHP in my edge animate project and am trying to add form validation to it.
I am having trouble linking this code to my project (or just adding it in) for basic email validation but edge gives me a syntax error each time I do?
This is the simple javascript I want to run:
function IsEmail(email) { var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; return regex.test(email);
}