Forum Moderators: coopster

Message Too Old, No Replies

Dhtml Tree menu.

Will header.php wrapped in php echo statement ...

         

russgri

2:11 am on Jun 28, 2004 (gmt 0)

10+ Year Member



header.php:
Will header.php wrapped in php echo statement prevent Dhtml tree menu from working.

It halts with an error on Line 19:
expected comma or semi-colon...


document.write('<style type="text/css">\n')

I remove the echo wrap and pasted in the variables and now the menu will not expand.
DynamicDrive script Switchmenu

coopster

1:05 pm on Jun 28, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Did you mean to include [php.net] the
header.php
file?

russgri

8:39 pm on Jun 28, 2004 (gmt 0)

10+ Year Member



Yes,
I have different title, keywords, stylesheets, for different folders.

I have backslashed the apostrophies but I still get an error on a line that is past the </html>.
Is the closing html tag supposed to be closed also...
</html \> or
</html>/
You are dealing with a Newbie here

coopster

9:37 am on Jun 29, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



When you include html, you simply pop out of "PHP mode" and back into "HTML mode". This introduction [php.net] may help.