[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-windows
Subject:    Re: [PHP-WIN] Access javascript from php
From:       "Aaron Kenney" <awkenney () gmail ! com>
Date:       2006-04-05 18:42:20
Message-ID: 61c45f750604051142r1b8c6ffeuf485307df3d9693a () mail ! gmail ! com
[Download RAW message or body]

I recommend <script type='text/javascript'> instead of <script
type="text/javascript">. Then you won't have a double-quote within a
double-quote.
-Aaron Kenney

On 4/4/06, Alf Stockton <alf@stockton.co.za> wrote:
> I have written my program in such a way that all the html is separate
> from my php but now I need to include a piece of javascript within the
> php but the php is very unhappy with <script type="text/javascript">,
> telling me Parse error: syntax error, unexpected '<' on that line.
> How do I do this?
>
> --
> Regards,
> Alf Stockton            www.stockton.co.za
>
> This life is yours.  Some of it was given to you; the rest, you made
> yourself.
>
> My email disclaimer is available at www.stockton.co.za/disclaimer.html
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic