How do you only allow certain characters to be typed into a text box, for example on a form, if i ask for a phone number, to only allow numbers to be typed in, Mark
here is an example... [color=navy] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
@pcthugMay 13.2006 — #The only problem is; if the user has JS disabled they can give disallowed characters as they will not be effected by the restrictions.
The only effective way to detect disallowed characters is by parsing them server-side, but by doing this there is no need for client-side restrictions.
@ray326May 15.2006 — #but by doing this there is no need for client-side restrictions[/QUOTE]Still, doing it on the client, too, usually makes for a better user experience.
@mark200authorMay 15.2006 — #Well I'd prefare to do it server-side. The only problem at the moment is that the people I am currently hosting with has a built-in formMail clone or whatever, and I can't access the script from ftp...this is what it says when i go into the FormMail clone in cpanel: FormMail Clone is clone of Matt Wright's FormMail under a less restrictive liscense. It should behave almost exactly as FormMail.cgi, but it is completely written from scratch so there might be a few minor visual differences.
The documentation for Matt Wright's FormMail.cgi might be helpful if you have never used FormMail before. It is available [url=http://www.worldwidemart.com/scripts/readme/formmail.shtml]here[/url]. Please note that the CPanel developers are not associated with Matt Wright's Script archive in any way. [/quote]
How do I edit it....i can not see the cgi-sys directory over ftp......