Deacon Frost
03-16-2008, 10:10 PM
Well, I have this profile type setup, where people edit their profile, it goes to the database, then it returns to their profile where they can view the new data.
Real simple, right.
Well, I've been thinking, and I just kinda tested it... but why do I have a feeling this could go wrong :S. Like, what if they try to <? include(""); ?> something, would it work? I mean, the fields that they can edit are marked as text so it doesn't read it as anything else but text, right?
However, when I tried to put a random include in one of the fields, it simply doesn't display the include, you can't even see it. So that must mean it's in the code, since it's not displayed.
If this be the case, how can I set it so that anything they insert automatically displays as text, and doesn't work on the side, or anything like that.
The problem with that, is that I want to allow links, and allow certain pictures.
Real simple, right.
Well, I've been thinking, and I just kinda tested it... but why do I have a feeling this could go wrong :S. Like, what if they try to <? include(""); ?> something, would it work? I mean, the fields that they can edit are marked as text so it doesn't read it as anything else but text, right?
However, when I tried to put a random include in one of the fields, it simply doesn't display the include, you can't even see it. So that must mean it's in the code, since it's not displayed.
If this be the case, how can I set it so that anything they insert automatically displays as text, and doesn't work on the side, or anything like that.
The problem with that, is that I want to allow links, and allow certain pictures.