You are here: Re: PHP an " « PHP Programming Language « IT news, forums, messages
Re: PHP an "

Posted by G0ng on 10/25/05 09:45

Ewoud Dronkert wrote:
> G0ng wrote:
>
>>If I do <input type="text" value="<?php echo $line["text"];?>"> there is
>>a problem with the " in the html code. I trie to do a
>
>
> http://php.net/htmlspecialchars
>

Ok this is ok for the HTML part. It is displayed correctly. But what I
want to do is pass it to a javascript function. So I do
<script language="javascript">
var ed=new EDITOR();
ed.create(document.form.textfield.value)
</script>

but the .create function needs the argument to be <b> and not &lt;b$gt;

Is there any other way to this DB field in my javascript?

thanks

 

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

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