Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 02-22-2013, 01:10 AM
rashidfarooq rashidfarooq is offline
Contributing Member
 
Join Date: 11-16-11
Posts: 103
iTrader: 0 / 0%
Why We Use bbcode?

I am developing a website in which I have used a comment box for the users to post comments. I want to understand that why we use bbcode, whether we have htmlspecialchars(), and mysql_real_escape() like functions to protect our data?

I mean if I wrap the users submitted data with htmlspecialchars() and mysql_real_escape() and store it to database then I pull this data out of the database and Display on a page decoding the html using htmlspecialchars_decode(), would it be an insecure way. And is there any chance to be done some thing malicious with my data? If yes, How bbcode can save me?
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 03-10-2013, 10:52 PM
chrisranjana chrisranjana is offline
Junior Member
 
Join Date: 07-11-05
Location: Chennai India
Posts: 18
iTrader: 0 / 0%
Quote:
Originally Posted by rashidfarooq View Post
If yes, How bbcode can save me?
Using bbcode the administrator of a particular forum can enable/disable which bbcodes an user can use while posting a listing. This gives an additional level of protection.
 
Reply With Quote
  #3  
Old 03-11-2013, 06:39 AM
ScriptMan's Avatar
ScriptMan ScriptMan is offline
Super Moderator
 
Join Date: 02-10-07
Location: Central Kentucky
Posts: 14,038
iTrader: 4 / 100%
Anything that can be done for or about HTML with bbcode can be done using PHP.

I would ask why you are allowing any HTML in your posts?
 
Reply With Quote
  #4  
Old 03-13-2013, 04:19 AM
knightra knightra is offline
Junior Member
 
Join Date: 02-04-13
Posts: 16
iTrader: 0 / 0%
bbcode is like a shortcode which allows user to insert functionality which developer has created using a short code which is defined for that functionality.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vbulletin bbcode doesn't parse correctly?!?!?! maplenexus Coding Forum 0 08-19-2010 03:50 PM
BBCODE in Visitor Message area. alter-ego V7N Forum Support 5 10-16-2009 10:06 AM
WYSIWG vs BBcode marc_gfx Web Design Lobby 0 06-11-2008 03:00 PM
BBcode and tables Louis Coding Forum 3 10-27-2006 11:46 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 07:05 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC