|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
This make user data safe? (PHP)
Does this make user input reasonabely safe?
PHP Code:
|
#2
|
||
|
to be honest I think you went a little overboard.
What kinda data are you trying to filter?
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#3
|
||
|
Nothing out of the ordinary, im building up a sword database, basiclly the fields are things like Sword Name, Sword Smith, RRP, some varchar, some int, some text etc etc
There is a textarea down thebottom for added/general info... The form does sit in the admin panel that only 1 other guy and myself have access too and i trust him not to screw things up, its more a case of better to be safe then sorry... |
#4
|
||
|
I usually just use base64 encoding for saving general input to the database. That's all I would use in your case
$encodedText = base64_encode("Some text"); $decodedText = base64_decode($encodedText); IcI |
#5
|
||
|
You've already done the work and that's pretty darn secure...i'd keep it like that .
|
#6
|
||
|
I actually havent put it in yet, i wanted to get the thing up then tweak it...
ici, i plan on making the data searchable, would it be using too much resources to encode the search strings aswell as the actual data? |
#7
|
||
|
I don't know how that would work, since I haven't done any thing with searching. But it works pretty fast for babstats system....
babstats base64 encodes all the player names, yet you can still search them. base64 may not be the best way. I am certainly not an expert in PHP lol |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it safe? | Chrispy | Tech Support | 2 | 07-10-2007 11:35 AM |
Is it safe? | Grenademan | General Chat | 39 | 03-18-2007 08:39 PM |
be safe | bigsmellyfart | Humor & Jokes | 3 | 12-19-2005 01:15 PM |
Drive safe! especially here | -Tigger- | Humor & Jokes | 6 | 06-27-2005 09:05 AM |