Matt_Helvey
06-09-2004, 05:51 PM
Hi, how is it possible to make a function that allow only letter (both upper- n' lowercase) and "." (dot) and "-". In other words, how do i define characters that will pass a form validation (to be inputted into a textfield). In this validation script ->
function guestbooksubmit(form) {
missinginfo = "";
if (document.guestbook.from_name.value == "") {
missinginfo += "\n • Name";
}
else return true;
}
so how can i put that fuction (only letters, . , -) into this??
(note: that this is not the whole script)
function guestbooksubmit(form) {
missinginfo = "";
if (document.guestbook.from_name.value == "") {
missinginfo += "\n • Name";
}
else return true;
}
so how can i put that fuction (only letters, . , -) into this??
(note: that this is not the whole script)