'/^[0-9a-z\s*]*$/i'
This so far does a check from start to finish for the following characters (insensitive)
1 2 3 4 5 6 7 8 9 0
a b c d e f g h i j k l m n o p q r s t u v w x y z
<space>
The problem with this is, nothing! When I try to add more to the line, I get errors where anything can pass through it. This is caused by magic_quotes_gpc which I cannot disable at all.
My question is, how would I add more to it without it passing through if other characters are checked.
I want the following allowed:
~ ! @ # $ % ^ & * ( ) _ - =+ / | \ ? <> . , {} [] ' "
The preg_match is to validate an announcement kind of setup like this question, it will do a check sanitize the code then insert it into database where it will be previewed on the main page.
Ex.
http://www.rideauhs.ocdsb.ca/
This is the site that I am working on, it doesn't take to my coding too well because of the magic_quotes_gpc but I need to work with it, so any suggestions would be great!
This so far does a check from start to finish for the following characters (insensitive)
1 2 3 4 5 6 7 8 9 0
a b c d e f g h i j k l m n o p q r s t u v w x y z
<space>
The problem with this is, nothing! When I try to add more to the line, I get errors where anything can pass through it. This is caused by magic_quotes_gpc which I cannot disable at all.
My question is, how would I add more to it without it passing through if other characters are checked.
I want the following allowed:
~ ! @ # $ % ^ & * ( ) _ - =+ / | \ ? <> . , {} [] ' "
The preg_match is to validate an announcement kind of setup like this question, it will do a check sanitize the code then insert it into database where it will be previewed on the main page.
Ex.
http://www.rideauhs.ocdsb.ca/
This is the site that I am working on, it doesn't take to my coding too well because of the magic_quotes_gpc but I need to work with it, so any suggestions would be great!
