p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

beginning_php thread: chapter 3 form problem

Message #1 by Jody Cleveland <Cleveland@m...> on Mon, 30 Sep 2002 11:37:21 -0500

I'm up to chapter 3 in the book and am having a problem with the forms. I
made sure the names matched (name="Author" - $Author)

What I get is a blank area in the page where $Author is. I checked the
archives for this list, and saw something to make sure register_globals was
set to on, which it is.

Any ideas? I'm running Redhat 7.3 with apache 2 and php 4.3


-Jody Cleveland

Winnefox Library System
Computer Support Specialist

"I thought I had an appetite for destruction, when all I really wanted was a
club sandwich."
- Homer -
Message #2 by "Nikolai Devereaux" <yomama@u...> on Mon, 30 Sep 2002 12:35:37 -0700
Check your error_reporting level.  Make sure it's set to E_ALL, so that even
E_NOTICE level warnings are reported.  You might find that $Author is an
undefined variable...

Still, though, you should probably get into the habit of coding with
register_globals=off, e.g.

   echo "Author is {$_GET['Author']}";

Take care,


  Return to Index