Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > CSS > BOOK: CSS Instant Results
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: CSS Instant Results
This is the forum to discuss the Wrox book CSS Instant Results by Richard York; ISBN: 9780471751267
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: CSS Instant Results section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 18th, 2007, 09:24 AM
Registered User
 
Join Date: Oct 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 3 - PHP

Hi,

Id been planning on using the menu system in chapter 3 for my website and created the menu and css. It works fine until i add my php code to the page. The php code is inserted in the document like this

<?php
//php code
?>
<html.....

as soon i place even one line of code in the page, the menu stops working. The page loads but is not clickable.

im aware that it has something to do with text before the <html>tag but i thought as it only contained functions and sessions settings and not any actual output, it would work.

Ive also tried it by doing
<?php
//code here
?><html ....

but this doesn't work either.

can anyone offer me any advice or will it just not work with php. it just seems unusual and ive been trying for days.

thanks


Reply With Quote
  #2 (permalink)  
Old October 18th, 2007, 01:05 PM
Authorized User
 
Join Date: Sep 2007
Location: , , .
Posts: 56
Thanks: 0
Thanked 1 Time in 1 Post
Default

It won't matter if your php code is above the html (it should be).

Is this a php page (does the page name end in .php)?

http://mynameissteve.com
Reply With Quote
  #3 (permalink)  
Old October 18th, 2007, 02:14 PM
Registered User
 
Join Date: Oct 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

thanks for the reply. what u said is exactly what i thought that it wouldn't matter as everything in the <?php ?> wouldnt be sent to browser but if i create my page and load it. The menu works fine, and it even works fine if i do <?php ?> and leave it empty between the brackets. as soon as i add php code though the menu stops working.

Yes the page is a php page. Is that the problem?

any help would be appreciated, i really want to use that menu in my website


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 10 Emailing with php - firstmail.php vijdev BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 July 19th, 2007 01:12 AM
PHP 4 chapter 15 angelic_scars BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 November 29th, 2006 07:36 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 09:57 AM
Chapter 4 table3.php mojo11ku BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 February 16th, 2006 06:39 PM
Chapter 6 commit.php czambran BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 4 October 3rd, 2004 10:20 PM



All times are GMT -4. The time now is 04:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.