By: surfweb
Date: 2010-12-22
Time: 13:13
|
few questionsHello everyone.
I just started programming and I found this very interesting project. My code: mypage.php
header.php
footer.php
mypage.html
I have this problem: function hello(); is shown before doctype instead of the body, why?
I hope someone can help me understand my mistakes sorry for my English but not speak it very well! |
|||||
By: Skrol29
Date: 2010-12-22
Time: 19:26
|
Re: few questions> function hello(); is shown before doctype instead of the body, why?
When you add [onshow.header;script=[val];subtpl] in the template, you ask to run the header.php file as a PHP script, but the subtpl "parameter" has no effect on the HTML which is directly coded in the PHP file. It can catch only HTML sent by output PHP commands like echo(). You should replace [onshow.header;script=[val];subtpl] with [onshow.header;file=[val]] And [onshow.footer;script=[val];subtpl] with [onshow.footer;file=[val]]. |
|||||
By: surfweb
Date: 2010-12-23
Time: 10:33
|
Re: few questionsThanks very much Skrol29!!
|