![]() |
PHP problem
Hello I am trying to make a dynamic php template. However for some odd reason when i run my php program (with xampp) it loads the homepage fine, but my other pages are not working! when i click the other page it seems like it just loads the default template.php file (home page). I will post the code for the following: template.php, navbar.html (for the links), home.php (home page) and about.php( the second page that does not work)
Here is the code: Template.php :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">Code for the links (navbar.html) :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">Code for home.php :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">Code for about.php :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">note: the background image loaded in home.php and about.php is where I would want my content to go. Thank you and I would apreciate any help, as this problem is very frustrating :'( lol keep in mind this is my first time doing php. |
Re: PHP problem
ok well I found one of the problems. in the navbar.html i have file="about" it should be file="abt" lol. still having some problems i will take another look, and if i still can't find the problem i will be back!
update: well its working fine now(lol dumb mistakes), the only thing that I don't know how to solve is positioning the txt. when I print some text it doesn't show up at the top but near the bottom. is there any way I can solve this without throwing a div in and using css to absolute position it? |
Re: PHP problem
Any ideas on how to position the text? I don't want to absolute postion it, since it will look different on different monitors.
|
Re: PHP problem
Is there any chance you could put this up on a server? It's hard to visualise as code.
|
| All times are GMT -5. The time now is 1:09 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC