Wrox Programmer Forums
|
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 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
 
Old January 22nd, 2004, 08:49 AM
Registered User
 
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning PHP4 chapter 8

On page 275 the second grey block replace:
    echo "<A HREF=$PHP_SELF>....
with
    echo "<A HREF=\"PHP_SELF\">....
Especially if you have a space in your directory name.
Same problem in the last grey block on page 274.
In the first grey block on this page it's done correct.
 
Old January 26th, 2004, 03:50 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You're forgetting your $ in front of "PHP_SELF" in your quoted version.

To be more correct, you should use lower-case HTML tag and attribute names, and you should use the $_SERVER superglobal:

echo "<a href=\"{$_SERVER['PHP_SELF']}\">...";


Take care,

Nik
http://www.bigaction.org/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning PHP4 chapter 8 jaapzwaan BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 January 26th, 2004 03:48 PM
Beginning PHP4 chapter 8 jaapzwaan BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 January 22nd, 2004 08:56 AM
Beginning PHP4 keithu1 Wrox Book Feedback 1 October 1st, 2003 07:05 AM
Beginning PHP4 Chapter 8 sipb2002 Wrox Book Feedback 1 July 12th, 2003 12:12 AM
Beginning php4 wjt11 All Other Wrox Books 0 June 12th, 2003 11:48 AM





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