Re: [PHP] $_POST Array and Cleaning

2008-01-22 Thread mike
On Jan 21, 2008 3:22 AM, nihilism machine [EMAIL PROTECTED] wrote: I'm trying to create a function that will first take an array of $_POSTs and give them key/value pairs like variables. For instance, if i had $_POST['whatever'] = whatever, that would be made into $whatever = whatever,

Re: [PHP] $_POST Array and Cleaning

2008-01-22 Thread Manuel Vacelet
On Jan 21, 2008 3:22 AM, nihilism machine [EMAIL PROTECTED] wrote: I'm trying to create a function that will first take an array of $_POSTs and give them key/value pairs like variables. For instance, if i had $_POST['whatever'] = whatever, that would be made into $whatever = whatever, then i

[PHP] $_POST Array and Cleaning

2008-01-20 Thread nihilism machine
I'm trying to create a function that will first take an array of $_POSTs and give them key/value pairs like variables. For instance, if i had $_POST['whatever'] = whatever, that would be made into $whatever = whatever, then i can clean for sql injection and xss. any ideas here? - e --

Re: [PHP] $_POST Array and Cleaning

2008-01-20 Thread Nathan Nobbe
On Jan 20, 2008 9:22 PM, nihilism machine [EMAIL PROTECTED] wrote: I'm trying to create a function that will first take an array of $_POSTs and give them key/value pairs like variables. For instance, if i had $_POST['whatever'] = whatever, that would be made into $whatever = whatever, then i

RE: [PHP] $_POST array order

2007-03-15 Thread Michael Weaver
Another option would be to use an associative array: input type=text name=domain_object_vars[FirstName] value=/ . . . . input type=text name=domain_object_vars[Zip] value= This way the 'submit' button wouldn't even show up as a key in the array, which is accessible to PHP through the

[PHP] $_POST array order

2007-03-14 Thread Tim
Hi, Quick question regarding $_POST array element order, first the situation: I am submitting a form with x first fields and the post value returns the last element as being the submit button name and value Is it safe to consider that the last element in the $_POST array will ALWAYS be the

RE: [PHP] $_POST array order

2007-03-14 Thread Brad Fuller
-Original Message- From: Tim [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 12:58 PM To: 'PHP' Subject: [PHP] $_POST array order Hi, Quick question regarding $_POST array element order, first the situation: I am submitting a form with x first fields and the post

Re: [PHP] $_POST array order

2007-03-14 Thread Tijnema !
On 3/14/07, Tim [EMAIL PROTECTED] wrote: Hi, Quick question regarding $_POST array element order, first the situation: I am submitting a form with x first fields and the post value returns the last element as being the submit button name and value Is it safe to consider that the last element

Re: [PHP] $_POST array order

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 11:58 am, Tim wrote: Quick question regarding $_POST array element order, first the situation: I am submitting a form with x first fields and the post value returns the last element as being the submit button name and value Is it safe to consider that the last

RE: [PHP] $_POST array order

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 12:28 pm, Brad Fuller wrote: You could also omit the name parameter of the submit button and it will not even be passed at all. input type=submit value= Submit Form I dunno about these new-fangled browsers, but in the old ones, you'd get Submit as the name if the user

RE: [PHP] $_POST array order

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 17:23 -0500, Richard Lynch wrote: On Wed, March 14, 2007 12:28 pm, Brad Fuller wrote: You could also omit the name parameter of the submit button and it will not even be passed at all. input type=submit value= Submit Form I dunno about these new-fangled

Re: [PHP] $_POST array not being populated

2005-01-18 Thread Richard Lynch
Bennie Foreman wrote: Hi, I am new to the PHP world so don't give me too much grief if this has a simple solution. My problem is that the $_POST array is not being populated. I have created a form and the method of that form is POST. I have started the session using session_start() but

[PHP] $_POST array not being populated

2005-01-17 Thread Bennie Foreman
Hi, I am new to the PHP world so don't give me too much grief if this has a simple solution. My problem is that the $_POST array is not being populated. I have created a form and the method of that form is POST. I have started the session using session_start() but still nothing. When I try

RE: [PHP] $_POST array not being populated

2005-01-17 Thread Jay Blanchard
[snip] I am new to the PHP world so don't give me too much grief if this has a simple solution. My problem is that the $_POST array is not being populated. I have created a form and the method of that form is POST. I have started the session using session_start() but still nothing. When I

Re: [PHP] $_POST array not being populated

2005-01-17 Thread Jochem Maas
Jay Blanchard wrote: [snip] I am new to the PHP world so don't give me too much grief if this has a simple solution. My problem is that the $_POST array is not being populated. I have created a form and the method of that form is POST. I have started the session using session_start() but

[PHP] $_POST array

2003-06-02 Thread Steven Farrier
I have tried using $_POST array variables in the following ways $message = ($_POST['first_name']) ($_POST['last_name'])\n($_POST['address'])\n($_POST['city']) ($_POST['state']) ($_POST['zip'])\n($_POST['country'])\n($_POST['email'])\n($_POST['design'])\ n($_POST['comments']); $message =

Re: [PHP] $_POST array

2003-06-02 Thread Rasmus Lerdorf
You should read this section of the manual: http://us2.php.net/manual/en/language.types.string.php Scroll down the the Variable parsing title and read from there and all will be clear. -Rasmus On Sun, 1 Jun 2003, Steven Farrier wrote: I have tried using $_POST array variables in the