|
Posted by "Matt Monaco" on 11/26/05 01:09
Somewhat, but its what you need to do for the post and get arrays to work.
What you need to do is make sure check the values in the global variables
before you use them. For example if on one page you have a form for a user
signup and <input type=text name='userName'> on the next page
$_POST['userName'] should be checked for things like quotes and other
characters that will alter your SQL statement before you actually INSERT
that value into your table.
"Unknown Unknown" <phpinfolist@gmail.com> wrote in message
news:793d90b50511251443t3c837a64w472e9c455e233441@mail.gmail.com...
Doesn't that cause security problems?
On 11/25/05, Matt Monaco <mmonaco3@jhu.edu> wrote:
>
> In php.ini (most likely located in your windows directory) look for the
> globals section and turn register_globals = on
>
> Matt
>
>
> "Unknown Unknown" <phpinfolist@gmail.com> wrote in message
> news:793d90b50511251422u5b4a77cfm7433cf04a9a20e64@mail.gmail.com...
> Hello everyone, i am running PHP 5 on Windows XP Pro SP2, my $_GET and
> $_POST arrays do not seem to be working, I am Sure I am spelling them
> right,
> but i keep getting the errors:
> **
> *Notice*: Undefined index: Username in *
> D:\Apache\Apache(re)\Apache2\htdocs\RegisterP.php* on line *3*
>
> *Notice*: Undefined index: Password in *
> D:\Apache\Apache(re)\Apache2\htdocs\RegisterP.php* on line *4*
>
> *Notice*: Undefined index: EMail in *
> D:\Apache\Apache(re)\Apache2\htdocs\RegisterP.php* on line *5*
>
> Is this a problem with configuration or is there a bug in PHP, thanks in
> advance
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
[Back to original message]
|