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,
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
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
--
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
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
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
-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
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
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
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
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
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
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
[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
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
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 =
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
17 matches
Mail list logo