Page 1 of 1
PHP Template
Posted: Wed May 04, 2005 1:37 am
by Raven-flock
I need to find away to transfer my html Template into a php template because my Login script keeps messing up because the html codes are before the headers and so it make it where the headers already been sent out only way that it works right is when i put the full url in there i dont want to use the full url... can someone help me make a Template that has 2 columns with the nav on the left? here is the page kinda like the way i want it to look like..
http://www23.brinkster.com/noobdefender/template1.htm (without the banner)
Thank you
Raven-Flock
...
Posted: Wed May 04, 2005 1:55 am
by Calimero
So, I don't quite follow - what you have, and what you need.
Have your tried switching the php and html code, or putting the HTML into VARiable and ECHOing it trough PHP.
Posted: Wed May 04, 2005 1:57 am
by Raven-flock
yeah but for some reason it will say there is a error or that it will show like some of the codes and stuff like that but i want a php template so its more easier for me to work with then mixing up with a html template..
...
Posted: Wed May 04, 2005 2:03 am
by Calimero
Well, I aven't had any problems with php-html templating if all code checked ( sometimes some little bracket or even " missing or if " exists in HTML can mess up the php engine ), so basicaly just take care what are you mixing and how it affects the other technology used ( php-html is easy, try playing with php-javascript-css within multiple pages - that's a story, but the same principle applies.
Maybe if you could post some code - ...
Are you trying to use sessions or cookies in that template-ing engine - they have their own specific rules governing their position in the code.
Posted: Wed May 04, 2005 2:19 am
by Raven-flock
see you cant have a html tag before a header or it will screw up and say that the header is already sent out and you have to use ob_start(); and use full urls just to get it working and i dont like to use full urls in my codes so thats why i want a php template...