On one of my forms I have two input boxes for longitude and latitude. Firstly I need to make sure these are valid, and secondly stop any sql injection techniques. I guess this can all be done by preg_match?
Examples of valid inputs:
1.52415
49.20158
-2.65548
-50.50124
Example of invalid inputs:
dslkhsdj
"klh2'@#';.?@
654654
324.24324.24.2
Can someone help me out with the preg_match code for this.
Cheers