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 June 5th, 2003, 01:23 PM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default (Do I use) html_header(); (or do I use) header();

I keep getting an error when I run the registration.php script on page 468. It keeps pointing to the "html_header()" line near the end of the script (on page 472) as being "invalid".

Looking through php.net (as well as the back of the book) seems to indicate that "header();" is the way to go.

If so, what should the correct code look like?

Any suggestions?

 -David
 
Old June 6th, 2003, 12:37 AM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For anyone who cares, I figured this one out myself.

If you have an "html_header()" just sitting
around out in the open, undefined . . . then
you are just asking for trouble.

"html_header()" needs to be defined somewhere
as a function in the following format;

function html_header() {
<?
<head>
<title>What Title</title>
</head>
<body>
?>
}

After that, you can call the function without
problem, so long as it has been defined before
it gets called.

Simple stuff, sure, but not when you don't
know what you are supposed to be looking for.

 -David





Similar Threads
Thread Thread Starter Forum Replies Last Post
"PHP Header" heerajee Pro PHP 3 January 25th, 2006 10:47 AM
Page Header chacquard Access VBA 1 September 26th, 2005 06:17 PM
header footer zaman1111 JSP Basics 0 July 28th, 2005 05:00 PM
form header tmc Access 1 August 5th, 2004 08:22 AM
Header error kuehhc Beginning PHP 4 June 3rd, 2004 09:20 AM





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