southbeach
Programmer
Howdy!
At which point should one be concerned with special characters
(1) data entry level
(2) saving to table
(3) pushing to web
(4) other _______
As is the case with all or most of us, data integrity, security and flexibility is staring right at me. I need to allow user the use of anything under the sun (for the most part) but yet, application|server security cannot be compromised.
Data is of no use to user if content is missing so, how does one work out the compromise? I figure I use
when pushing to web and
when storing to table.
What else should I do? Is this even what I should do?
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
At which point should one be concerned with special characters
(1) data entry level
(2) saving to table
(3) pushing to web
(4) other _______
As is the case with all or most of us, data integrity, security and flexibility is staring right at me. I need to allow user the use of anything under the sun (for the most part) but yet, application|server security cannot be compromised.
Data is of no use to user if content is missing so, how does one work out the compromise? I figure I use
Code:
htmlspecialchars($string, ENT_QUOTE, 'UTF-8')
Code:
mysqli_real_escape_string($link, $string)
What else should I do? Is this even what I should do?
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.