Re: form problem
| From: | Philip Hallstrom | Date: | Thu, 24 Oct 2002 17:14:58 +0000 |
| Subject: | Re: form problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121313@lists.php.net to get a copy of this message | ||
In cases like this I find it's useful to replace your php file with:
<?php
phpinfo();
?>
That will spit out all the configuration options as well as all the
variables that PHP "knows" about. Search for "firstname" and see where it
shows up.
My guess is that register_globals = off and you'll find it what you want
in $_POST (way down at the bottom)
On Thu, 24 Oct 2002, GC wrote:
> Hi:
> I'm having a really stupid problem...I'm trying to get the values from a
> form object just to display on a php page. When I click submit, I only get
> a blank screen. Am I missing something really stupid here? Here is my
> code:
>
> ::html file::
>
> <html>
> <head>
> <title>Test</title>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> </head>
>
> <body bgcolor="#FFFFFF" text="#000000" leftmargin="0"
> topmargin="0">
> <form name="form1" method="post"
> action="adduser_p.php">
> <input type="text" name="firstname">
> <input type="submit" name="Submit"
> value="Submit">
> </form>
> </body>
> </html>
>
> ::php file::
> <?php
> print $firstname;
> ?>
>
> Thanks!!
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>