Reading your other post, I think what you REALLY want to do is throw away an
variable that contains non-numeric values... Since you only want numbers,
then everything else must be a mistake, or an attack.
take the URL blah.php?foo=45&bah=hekygu
if(in_numeric($_GET['foo']))
{
// do stuff
At 16:32 14.11.2002, CJ spoke out and said:
[snip]
>I want to scan the variables passed from teh url of my script for non alpha
>characters. The variables should only consist of a-z A-Z 0-9 and spaces,
>full stops and commas (Basically I don't want scripts t
I want to scan the variables passed from teh url of my script for non alpha
characters. The variables should only consist of a-z A-Z 0-9 and spaces,
full stops and commas (Basically I don't want scripts to be passed via the
variable to the server)
I've used perl a long time ago and its regular ex
3 matches
Mail list logo