Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
| Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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 September 14th, 2003, 06:14 AM
Registered User
Join Date: Sep 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to viksapar
Default beginning php4 sample codes

i'm having problems with codes in Beginning PHP4. For example, in hidden.php and hidden2.php in page 95 to 97, the variables are not passed on to hidden2.php. All I see is this:

The three options were:

You selected:

i've even tried the code provided by wrox for this exercise. same result.

i can view php scripts alright. i've installed postnuke and ezpublish and they work fine. wonder what i missed. i'm using php4 on apache on windows xp.
  #2 (permalink)  
Old September 16th, 2003, 05:26 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts

You're problem is most likely due to your register_globals settings. PHP changed the default value of register_globals to OFF after Beginning PHP was written. Before, all form input variables were copied into global variables. They're not anymore.

For more info, read my register_globals FAQ:

The reason post nuke and other well-maintained PHP apps work is that they're all patched to work with register_globals = off.

Take care,


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to download sample codes Beginning ASP Data ckm2003 Wrox Book Feedback 1 November 2nd, 2007 07:56 AM
Need some more sample codes t.m.sundaram Visual Basic 2005 Basics 0 July 16th, 2006 08:16 AM
Beginning PHP4 keithu1 Wrox Book Feedback 1 October 1st, 2003 07:05 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.