romant
-
Posts
4 -
Joined
-
Last visited
Posts posted by romant
-
-
I guess this happens because of ob_start() function, but cannot understand exactly why.
-
I have attached two pictures showing index.php and register.php displaying in my browser (from chapter 18).
Obviously, browser does not display css correctly, if we look at examples in ch 18 everything has different look from what I see.
-
Thank you very much for this great book!
The only trouble I have is displaying CSS in chapter 18.
No one php script in chapter 18 does display CSS style, except for index.html, it displays CSS like in examples in the book. I cannot understand why. For example, below is a source code generated from Script 18.5 - index.php, it does includes CSS style reference but doesn't display it in a browser.<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Welcome to this Site!</title> <link rel="includes/layout.css"> </head> <body> <div id="Header">User Registration</div> <div id="Content"> <!-- End of Header --><h1>Welcome, roman!</h1><p>Spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam.</p> <p>Spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam spam.</p> <!-- Start of Footer --> </div><!-- Content --> <div id="Menu"> <a href="index.php" title="Home Page">Home</a><br> <a href="logout.php" title="Logout">Logout</a><br> <a href="change_password.php" title="Change Your Password">Change Password</a><br> <a href="#">Some Page</a><br> <a href="#">Another Page</a><br> </div><!-- Menu --> </body> </html>
Css In 18 Chapter Example
in PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (5th Edition)
Posted
I added href tag and eventually it worked out. Thanks
<link rel="stylesheet" href="layout.css">