Filtering form input

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Xelmepa
Forum Commoner
Posts: 41
Joined: Sat Aug 24, 2002 3:02 pm
Location: Athens, Greece
Contact:

Post by Xelmepa »

I tried it with a normal filename, I got:

Warning: Delimeter must not be alphanumeric or backslash...

Sorry, I'd try to solve this myself, but I cant figure out the format of this thing :P
User avatar
gotDNS
Forum Contributor
Posts: 217
Joined: Tue May 07, 2002 5:53 pm
Location: West Chester, PA

Post by gotDNS »

Just becuase code looks more compliecated doesn't mean it's better...I'd go with Hob_Goblin on this one.
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Yeah I'ld also go with hob_goblin's approach in this case, been too caught up in some security books and the Masterig Regular Expressions book so I go over board when I shouldn't.
Post Reply