You are here: Re: Editing HTML with PHP « All PHP « IT news, forums, messages
Re: Editing HTML with PHP

Posted by AlexVN on 11/04/06 09:12

On Nov 4, 3:33 am, "sTony" <rWorldDesi...@yahoo.ca> wrote:
> I'm a bit of a php newbie (understatement) and I'm writing a website that
> allows users to edit the pages of the website, like wikipedia does. Anyhow,
> I'm stuck.
>
> I can edit just fine.. I just htmlspecialchars the contents of a page into a
> <textarea> tag within a form, and then the user can edit the page in the
> text area, but my version of php doesn't support htmlspecialchars_decode, so
> I'm having trouble saving the page properly. Other than upgrading my php
> version, (it took me forever to get it working) does anyone have any ideas
> that could help me?
>
> Thanks in advance,
>
> sTony

htmlspecialchars just replaces some characters with corresponding HTML
entities. You can easy create a mirror function, which replaces them
back into characters with the http://www.php.net/str_replace function.

Sincerely,
Alexander
http://www.alexatnet.com/ - PHP/ZendFramework/Ajax blog

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация