ahs10 Posted May 3, 2007 Share Posted May 3, 2007 so i have a simple message board that users post to via a php page that contains a textarea. it is all working lovely, except for a small bug that has been discovered. when the user includes the word "Update" in the post, it doesn't show up when you view the post. the same word typed as "update" or "UPDATE" does work, but when the first letter is capatilized.....no go. also, a semi-colon will not show up either. any ideas on why this is happening? is there something i can include in the code to exempt the data of the textarea from the code? in a way, comment out the contents of the textarea? Quote Link to comment https://forums.phpfreaks.com/topic/49840-solved-simple-message-board-can-not-include-certain-words-or-characters/ Share on other sites More sharing options...
genericnumber1 Posted May 3, 2007 Share Posted May 3, 2007 What routines are you using to escape the information in the textarea before adding it to the database? Quote Link to comment https://forums.phpfreaks.com/topic/49840-solved-simple-message-board-can-not-include-certain-words-or-characters/#findComment-244557 Share on other sites More sharing options...
MadTechie Posted May 3, 2007 Share Posted May 3, 2007 preg_replace it probley the easiest, i'll suggest doing a search their's few members who have done the same thing and their badword filters and BBcodes are all posted!!, Oh and your need to post some code for "real" help, or we're all just guess until the cows come home Quote Link to comment https://forums.phpfreaks.com/topic/49840-solved-simple-message-board-can-not-include-certain-words-or-characters/#findComment-244561 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.