Re: [PHP] POST/GET into variables

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 3:59 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Mon, January 21, 2008 10:03 am, Nathan Nobbe wrote: > > On Jan 21, 2008 10:19 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > >> I don't think making a single generic function to iterate over every > >> value in the GET/POST a

Re: [PHP] POST/GET into variables

2008-01-22 Thread Richard Lynch
On Mon, January 21, 2008 10:03 am, Nathan Nobbe wrote: > On Jan 21, 2008 10:19 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > >> I don't think making a single generic function to iterate over every >> value in the GET/POST arrays is a very good idea. Each field on a >> form can contain very differen

[Fwd: Re: [PHP] POST/GET into variables]

2008-01-21 Thread Jochem Maas
rectified ;-) Originele bericht On Jan 21, 2008 11:51 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: yeah - you'll get used to it, mostly. it happens to everyone that they seem to be getting replies to things they didn't write - I was responding to the OP in this case - adding to

Re: [PHP] POST/GET into variables

2008-01-21 Thread Nathan Nobbe
On Jan 21, 2008 10:19 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > I don't think making a single generic function to iterate over every > value in the GET/POST arrays is a very good idea. Each field on a > form can contain very different pieces of data that should be handed > quite differently.

Re: [PHP] POST/GET into variables

2008-01-21 Thread Jochem Maas
Eric Butera schreef: ... then from client space you would just say InputFilter::filterInput(); then, subsequently you can use $_POST and $_GET directly with the assumption that the input has been escaped. BAD! assuming $_GET/$_POST are sanitized and escaped is always wrong. stick cleaned/val

Re: [PHP] POST/GET into variables

2008-01-21 Thread Eric Butera
On Jan 20, 2008 10:06 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 20, 2008 9:47 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > > > how does this look? should this by me calling ... myforms = new > > forms(); work by turning all key/value pairs for both get and post > > into variable nam

Re: [PHP] POST/GET into variables

2008-01-21 Thread Eric Butera
On Jan 20, 2008 10:15 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > im trying to keep this php4 OOP. im just trying to clean the post/gets > and then make them all into variables with their names being the keys > to the get/post, and their values as the variables values. > > ie: $_POST['someFor

Re: [PHP] POST/GET into variables

2008-01-20 Thread Nathan Nobbe
On Jan 20, 2008 10:15 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > im trying to keep this php4 OOP. im just trying to clean the post/gets > and then make them all into variables with their names being the keys > to the get/post, and their values as the variables values. then all you have to

Re: [PHP] POST/GET into variables

2008-01-20 Thread nihilism machine
im trying to keep this php4 OOP. im just trying to clean the post/gets and then make them all into variables with their names being the keys to the get/post, and their values as the variables values. ie: $_POST['someFormInputName'] = "somevalue" ... turns into $someFormInputName = "somevalue"

Re: [PHP] POST/GET into variables

2008-01-20 Thread Nathan Nobbe
On Jan 20, 2008 9:47 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > how does this look? should this by me calling ... myforms = new > forms(); work by turning all key/value pairs for both get and post > into variable names of the same name as the get/post key, and the > variable values as the v

[PHP] POST/GET into variables

2008-01-20 Thread nihilism machine
how does this look? should this by me calling ... myforms = new forms(); work by turning all key/value pairs for both get and post into variable names of the same name as the get/post key, and the variable values as the values from the post/get? class forms { // Some stuff