Page 1 of 1

[SOLVED]Strange </script> problem!!

Posted: Sat Jun 05, 2004 4:25 pm
by mjseaden
Dear All

Of the all the problems I have had in making code, this has got to be the strangest.

I have a <SCRIPT> clause like this

Code: Select all

<SCRIPT LANGUAGE='JavaScript'> ...my javascript code generated by PHP/MySQL... </SCRIPT>
Notice the capitals in </SCRIPT>. Now here's the bizarre thing....

On my page, when I execute it, the code comes up as text. When I look at the source code on my browser to check it out, after the

Code: Select all

<SCRIPT LANGUAGE='JavaScript'>
Immediately comes a

Code: Select all

</script>
Which explains why the code comes up as text - but this is something I have not typed in and is not present on the original PHP script before heading to the client! However, I have check and rechecked the code, even deleted the <SCRIPT> clause and retyped it manually again and deleted lines above and before it, and yet the strange </script> code keeps on appearing.

Can someone explain what is going on? This is weird!

Many thanks

Mark

Posted: Sat Jun 05, 2004 4:44 pm
by mjseaden
/solved

Posted: Sat Jun 05, 2004 5:49 pm
by John Cartwright
You should always post the solution so other people that have the same problem can see.

Posted: Sat Jun 05, 2004 9:19 pm
by launchcode
Phenom - most the time I would agree, but this is too specific and is obviously a user error somewhere to be of much use to us :)

Posted: Sun Jun 06, 2004 4:19 am
by mjseaden
No it isn't actually

The 'solution' was to take exactly the same code and copy and paste it from another spot - I don't actually know why this 'solved' it.

Mark

Posted: Sun Jun 06, 2004 4:20 am
by mjseaden
And can some specific people stop whinging at me about some Section 8(b)(i) Part 1 Paragraph 2 Subset 2 Section 2.1b of the forum 'etiquette'.

Many thanks

Mark

Posted: Sun Jun 06, 2004 5:32 am
by patrikG
mjseaden wrote:And can some specific people stop whinging at me about some Section 8(b)(i) Part 1 Paragraph 2 Subset 2 Section 2.1b of the forum 'etiquette'.

Many thanks

Mark
:lol:

My copy of the forum etiquette has only one paragraph: RTFM
The nice thing is: it's truly universal ;)

Would be interesting to hear what other people's copy includes... :lol:

Posted: Sun Jun 06, 2004 5:35 am
by mjseaden
RTFM - Read the f****** manual?

The PHP manual makes no mention of the problem - hence the need to ask other experienced PHP users if they have any ideas from their own experience.

Posted: Sun Jun 06, 2004 6:06 am
by patrikG
mjseaden wrote:RTFM - Read the f****** manual?

The PHP manual makes no mention of the problem - hence the need to ask other experienced PHP users if they have any ideas from their own experience.
It wasn't meant personally at all, man ;) I meant it generally, not directed at you at all. I'm just curing last night's hangover ;)

Posted: Sun Jun 06, 2004 6:25 am
by mjseaden
np patrik