Re: Access javascript from php
| From: | David Collard | Date: | Tue, 04 Apr 2006 19:11:30 +0000 |
| Subject: | Re: Access javascript from php | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-26812@lists.php.net to get a copy of this message | ||
Try echo "<script>...</script>";
Matt Murphy wrote:
?> <script type="text/javascript"> <?php-----Original Message----- From: Alf Stockton [mailto:alf@stockton.co.za] Sent: Tuesday, April 04, 2006 9:04 AM To: php windows Subject: [PHP-WIN] Access javascript from php 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