> 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 = "
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 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"
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
-
Another option would be to use an associative array:
.
.
.
.
This way the 'submit' button wouldn't even show up as a key in the
array, which is accessible to PHP through the $domain_object_vars array.
Best regards,
Mike Weaver
--
Michael Weaver
Founder/Chief Facilitator
Dynamic Insight
In
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.
> >
> >
>
> I dunno about these new-fangled browsers, but in the old ones,
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.
>
>
I dunno about these new-fangled browsers, but in the old ones, you'd
get "Submit" as the name if the user clicked on the button, and
n
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 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
> -Message d'origine-
> De : Brad Fuller [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 14 mars 2007 18:29
> À : 'PHP'
> Objet : RE: [PHP] $_POST array order
>
> > -Original Message-
> > From: Tim [mailto:[EMAIL PROTECTED]
> &
> -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 a
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 submi
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()
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 sti
[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
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
tr
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 follow
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 = "$_P
18 matches
Mail list logo