Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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


  #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
  #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




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 08:36 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 10: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 07: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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.