You are here: Re: php reference in <SCRIPT> tag gives "Error on page" in IE6.0 « PHP Programming Language « IT news, forums, messages
Re: php reference in <SCRIPT> tag gives "Error on page" in IE6.0

Posted by Captain Paralytic on 02/08/07 13:37

On 8 Feb, 13:27, "rukkie" <ruk...@belgacom.net> wrote:
> Hi,
>
> I have some problems with a PHP reference in a <SCRIPT> tag, but only
> with the Internet Explorer, which gives a "Error on page" message in
> the Status Bar.
> The code is as follows :
> <script>
> <!--
> var stat =<?php echo stripslashes($status); ?>;
> window.status = stat;
> //-->
> </script>
>
> The error given is :
>
> Line:24
> Char:13
> Error: Syntax error
> Code: 0
>
> Char 13 is the "<" or looking to the source of the page with the IE
> browser, it's ";"
>
> I get the error message as said before only in the Internet Explorer
> browser and it does not affect the display nor the functionality of
> the page, but it's not good looking ...
>
> Has anyone out there a solution to get rid of the "error" ?
>
> Thanks in advance.

Just re-read your post. The php script isn't outputting anything,
that's why it ends up with the = followed by the ; which is certainly
incorrect syntax.

 

Navigation:

[Reply to this 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

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