|
Posted by Steve on 11/29/05 12:18
X-No-Archive: yes
> Long time lurker, my first post.
....and your first post is off-topic! Ah well...
> I don't want to do a check in php, but in javascript.
And if the user has javascript turned off, or creates their own form?
You will want to check at the server too.
> if I enter a period in "notAllowed" - it assumes "any character" - but i want to check for ".com" ".net" etc...
> notAllowed=['http', 'www', 'ww', '://', '.com', '.co.uk', '.net', '.biz', 'dot com', 'dotcom', 'dotnet', '@'];
Any Javascript reference would tell you, metacharacters like '.' are
escaped with a backslash thus: '\.co\.uk' so tey are treated as literal
characters.
---
Steve
Navigation:
[Reply to this message]
|