|
Posted by Dave on 07/11/05 13:13
(jfranchino0000@yahoo.com) decided we needed to hear...
> this is the code:
> print("change_text(\"english\",\"$myrow[word_english]\")>");
>
> change_text(id,text) is a javascript function that changes some of the
> text on the page to something else. $myrow[word_english] returns a
> field from an entry in a mySQL database.
>
> this works fine, rendering html like this:
> change_text("english","green")>
>
> unless $myrow[word_english] has a space in it, then I get this:
> change_text("english","dark blue)>
>
> what am I missing?
> Thanks in advance! -jf
Maybe this is a bug in the PHP version you're using?
Your code works exactly as expected for me (PHPEd bundled PHP 4.3.4)
--
Dave <dave@REMOVEbundook.com>
(Remove REMOVE for email address)
Navigation:
[Reply to this message]
|