Re: Embed html in php?
| From: | jeremy brand | Date: | Wed, 22 Nov 2000 14:22:24 +0000 |
| Subject: | Re: Embed html in php? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26745@lists.php.net to get a copy of this message | ||
put \ (backslashes) infront of the ' (single quotes) that are to
appear in your string.
instead of this:
> <a
> href='javascript:NewWindow('info.php?artnr=%s','',200,100,'no')'>[?]</a>
try:
> <a
> href='javascript:NewWindow(\'info.php?artnr=%s\',\'\',200,100,\'no\')'>[?]</a>
-jeremy brand
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
- - - - - - - - - - - - - - - - - - - - - - - - -
I am pleased to see that we have differences. May we together become
greater than the sum of both of us.
-- Surak of Vulcan, "The Savage Curtain", stardate 5906.4
On Wed, 22 Nov 2000, Daniel Alsén wrote:
> Date: Wed, 22 Nov 2000 23:19:36 +0100
> From: Daniel Alsén <daniel@innehallsbolaget.com>
> To: PHP <php-general@lists.php.net>
> Subject: [PHP] Embed html in php?
>
> Hi,
>
> can anyone help me with this?
>
> <a
> href='javascript:NewWindow('info.php?artnr=%s','',200,100,'no')'>[?]</a>
>
> The code gets snipped of at (' (as it should i suppose). So what code do i
> use to get the rest of the code in? is there a way of telling php that the
> character shouldn´t be considered code?
>
> ## Daniel Alsén | http://www.eyebee.com #
> ## Innehållsbolaget | ICQ: 63006462 #
> ## daniel@eyebee.com | Fax: +46 8 4100 1650 #
> ## +46 8 4100 1605 | Mob: +46 709 93 57 05 #
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>