> -----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]
> > 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 
> 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 submit element (it is always last in form)?
> > 
> > I would like to array_pop($_POST) to get rid of that last 
> element for 
> > various reasons (validation scheme) later on..
> > 
> > Regards,
> > 
> > Tim
> > 
> > --
> > PHP General Mailing List (http://www.php.net/) To 
> unsubscribe, visit: 
> > http://www.php.net/unsub.php
> > 
> 
> You could also omit the "name" parameter of the submit button 
> and it will not even be passed at all.

Ok i'll go back to the HTML list ;) 

Thank you mate, had no idea, now to see if this is XHTML compliant..

Regards,

Tim

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to