On Fri, 5 Apr 2002, cyberskydive wrote:
> So I wanna learn how to code properly with register_globals off, I reead on
> PHP.net about the new auto globals and inmy new php4.1.2 windows
> installation using php.ini-rec edited according to the intall.txt file, and
> a few changes from books I have (upload tmp dir etc) I'm off to learn how to
> use the new auto globals. I've tried $_REGISTER and $_POST . Here is what I
> tried as a simple test.
>
> <form method="post" action="somefile.php">
> <input type="text" name="is_name">
> <input type="submit">
> </form>
>
> --somefile.php--
>
> <?
>
> print("$_REGISTER["is_name"]");
> or
> print("$_POST["is_name"]");
>
> ?>
Two problems.
1) It's $_REQUEST, not $_REGISTER
2) Take the outermost quotes off the argument to your print, like so:
print $_REQUEST["is_name"];
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php