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 8th, 2003, 11:38 AM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with chaptor 3

Im doing the first example page 76 where you have to submit your favorite author and php returns it back to you! well for some reason when i submit my author the page just returns "your favorite author is :" and that it, it returns nothing! and he does mention why this has happend but everything in my code seems fine, it just wont return anything but a blank! and ha its bugging me and i cant move on until i get it sorted
 
Old June 8th, 2003, 01:00 PM
Registered User
 
Join Date: Jun 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to LagunaPaul
Default

Is the text in the query string on the URL [with method="get"] and not on the page? If so, you have to either turn on the register_globals or use the $_GET or $_POST--Read the errata for the book.
 
Old June 8th, 2003, 01:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

Are you sure that in php.ini file you have this line:
register_globals = on
If register_globals has the value "off" you have to enter this line in the file text.php
$Author=$HTTP_POST_VARS["Author"];

...but the Soon is eclipsed by the Moon
 
Old June 8th, 2003, 03:02 PM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In addition to what has already been posted, if you are storing your files locally, be sure to make sure that you have the server software up and running, otherwise the PHP code will not be parsed.

Post your code so we can see what you have typed, and how you have typed it. Aside from the buggy code in the book, simple typing errors are usually the culprit.

 -David
 
Old June 8th, 2003, 03:16 PM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got it solved, i forgot about the "register_globals" once i turned them on it was working. Thanks for the help much appreciated









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