Not trying to flame anyone here, but this question has been answered SEVERAL times before.. I catch one or two of these a night.
Anyway.. here's the most likely problem / solution
; - register_globals = Off [Security, Performance]
; Global variables are no longer registered for input data (POST, GET, cookies,
; environment and other server variables). Instead of using $foo, you must use
; you can use $_REQUEST["foo"] (includes any variable that arrives through the
; request, namely, POST, GET and cookie variables), or use one of the specific
; $_GET["foo"], $_POST["foo"], $_COOKIE["foo"] or $_FILES["foo"], depending
; on where the input originates. Also, you can look at the
; import_request_variables() function.
; Note that register_globals is going to be depracated (i.e., turned off by
; default) in the next version of PHP, because it often leads to security bugs.
; Read http://php.net/manual/en/security.registerglobals.php for further
; information.
The above was posted DIRECTLY from the PHP.INI file (in my WINNT folder).
The short answer to your question...
- Use $_REQUEST["foo"] to get your variable passed from the form.
- Turn "register_globals = On"
(Most peopel tend to take the easy way out and do option #2)