Re: Re: $_GET and $_POST arrays not working

From: Date: Fri, 25 Nov 2005 23:31:20 +0000
Subject: Re: Re: $_GET and $_POST arrays not working
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-226450@lists.php.net to get a copy of this message
could you give us all source lines, just cut and paste ? hy ag. 2005/11/26, Matt Monaco <mmonaco3@jhu.edu>: > 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 > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#226450) next »