Reply to Re: [PHP] Re: $_GET and $_POST arrays not working

Your name:

Reply:


Posted by adriano ghezzi on 11/26/05 01:31

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
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация