View Single Post
 
Old January 25th, 2004, 05:19 PM
richard.york's Avatar
richard.york richard.york is offline
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Hi, the problem relates to the register_globals directive.

The solution is you must access the variable in the $_POST superglobal array, and not as a global variable...

So $_POST['Authur'] instead of $Authur if the method attribute of your html form is set to post.

Or $_GET['Authur'] instead of $Authur if the method attribute of your html form is set to get.

Here is the most important URL you will ever need when dealing with PHP:
http://www.php.net/manual/en/index.php

Here is the specific page on super-global variables:
http://www.php.net/manual/en/languag...predefined.php

A page discussing why register_globals is a potential security risk:
http://www.php.net/manual/en/securit...terglobals.php

More topics on p2p that discuss this:
http://www.google.com/search?q=regis...e:p2p.wrox.com

: )
Rich

:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::