Forum Moderators: open

Message Too Old, No Replies

Restricting Characters

         

matthew

5:13 pm on Jan 18, 2005 (gmt 0)



Hi,

Here's my situation...

I've built a simple CMS using PHP and flash. All it basically does it take the text from two text fields and posts them as a news update. What I'm working on now is allowing my clients to update their past posts.

Here's my problem... When I first post a new message with charachters like " ' or &, they all work fine because I have them formatted in HTML in the PHP code. However, It's a bit trickier for the update and it outputs this apos; quot; etc...

So, my question is... how, in flash, can i tell the script not to send the " ' and & characters to the PHP script? I want them to be left out or preferrably replaced.

Thanks for your time.

rogerd

12:58 pm on Mar 11, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Help may be on the way soon.

BlobFisk

1:09 pm on Mar 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, matthew!

This is something that I think will need to be done with Actionscript. You should be able to strip out the characters before sending the string to the server.

HTH