Re: Escaping the " ' " character

From: Date: Wed, 10 Sep 2003 18:05:35 +0000
Subject: Re: Escaping the " ' " character
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162209@lists.php.net to get a copy of this message
Try this <?php $url="yourpage"; echo "<a href=# onClick='MM_openBrWindow(\"$url\",\"\",\"\")'>asd</a>"; ?> HTH -Murugesan ----- Original Message ----- From: Todd Cary To: php-general@lists.php.net Sent: Wednesday, September 10, 2003 10:57 PM Subject: [PHP] Escaping the " ' " character I need to print the following: onClick="MM_openBrWindow('http://www.gilardi.com/pdf/gwyt1poc.pdf','','')" and I am not sure how to escape the " ' " characters. Actually, the 'http://www.gilardi.com/pdf/gwyt1poc.pdf' will be a variable, $url. Can someone point me toward some docs on this? Many thanks! Todd --

« previous php.general (#162209) next »