Reply to Re: single quote in string constant

Your name:

Reply:


Posted by Michael Fesser on 12/07/07 14:47

..oO(Steve)

>it can get frustrating. But this is what i do to solve this.
>note the two type of quotes used single ' and double "
>
>$title = "This'll work";

$title .= ', but not on my 19" screen.';

SCNR

>echo '<h1><IMG SRC="_images/_rock/Zacs World.gif" ALT="' . $title . '">
></h1>';

The correct solution (htmlspecialchars()) was posted already.

Micha

[Back to original 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

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