PHP Template

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Raven-flock
Forum Newbie
Posts: 24
Joined: Tue Apr 12, 2005 2:02 pm

PHP Template

Post 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
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post 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.
Raven-flock
Forum Newbie
Posts: 24
Joined: Tue Apr 12, 2005 2:02 pm

Post 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..
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post 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.
Raven-flock
Forum Newbie
Posts: 24
Joined: Tue Apr 12, 2005 2:02 pm

Post 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...
Post Reply