Discussion: $_POST array question
Afficher un message
Vieux 26/04/2008, 15h01   #11
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: $_POST array question

William Gill wrote:
> Álvaro G. Vicario wrote:
>> More or less, that's how it's always worked. Browsers sends all form
>> fields
>> except:
>>
>> - Fields with "disabled" attribute
>> - Unchecked checkboxes

>
> I could have sworn I didn't get empty fields before.
>
>> For God's sake, *never* trust external data!

> I don't. I didn't want to perform an array_key_exists( 'fieldname',
> $_POST ) before I test what value they contain.
>
>


Use isset($_POST['fieldname']).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

  Réponse avec citation
 
Page generated in 0,05069 seconds with 9 queries