•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,975 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,650 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 315 | Replies: 8 | Solved
![]() |
•
•
Join Date: Dec 2006
Location: Damascus - Syria
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
I have a flash website that is reading from php database with a control panel to change the content of the website by the owner.
My problem is that when i enter some characters like (,) (&)(") the text gets truncated and won't see the rest of the text after any character of those.
The php database is storing all text correctly, but when displaying it in flash its stopping when encountered with one of the characters...
How can I encode the characters before entering them in the database so that the flash wont get messed up?
I hope I'm clear. Thank you for your time.
My problem is that when i enter some characters like (,) (&)(") the text gets truncated and won't see the rest of the text after any character of those.
The php database is storing all text correctly, but when displaying it in flash its stopping when encountered with one of the characters...
How can I encode the characters before entering them in the database so that the flash wont get messed up?
I hope I'm clear. Thank you for your time.
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation:
Rep Power: 8
Solved Threads: 239
You can use htmlentities or htmlspecialchars.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation:
Rep Power: 8
Solved Threads: 239
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Dec 2006
Location: Damascus - Syria
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
oh right thats what i was looking for.. thanks a lot i'll try it in a while and i'm sure its gona work. 

•
•
•
•
I believe you have to use url encoding to get Flash to read it. For example, %26 will be displayed as &. Here's the urlencode manual.
•
•
Join Date: Dec 2006
Location: Damascus - Syria
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
oh yes flash does understand html tags, but you have to set the text property to dynamic or input and then click a button that looks like this: <> and if you mouse over it says "Render Text as HTML".
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Open In New Window Php (PHP)
Other Threads in the PHP Forum
- Previous Thread: Nice looking links
- Next Thread: PHP Script



Linear Mode