I have downloaded a website using ftp , when I test the site in my host , it shows the error
[an error occurred while processing this directive]
You can check this error here http://www.excoflare.com/dev2011/amplitechnic/
Also, I am struggle to get a regular expression for a valid floating point number . I used this one :
expression: "if (VAL.match(/^[0-9]*\.?[0-9]/)) return true; else return false;",
But the above expression returns true even if I write say 1.x ?
Sorry I put the questions together.
It’s a web server error:
Apache Tutorial: Introduction to Server Side Includes
It is probably caused by something that looks like an SSI directive in you page’s code:
SSI directives have the following syntax:
Also, why use regexps when there are specialized functions for determining whether it is a float or not, like is_numeric or is_float (if you need to check variable type) in php.
For jQuery client-side validation you could use JavaScripts parseFloat() function (if it returns NaN, when your input is not a number).
as suggested here: jQuery input validation for double/float
If you want a regexp, you may have a look at this question: Javascript/jQuery – Float Validating?