Re: $_POST array question
William Gill wrote:
But every field does NOT necessarily need to be set. For instance, a
hacker could create a page which links to yours and doesn't have those
fields set.
NEVER, NEVER, NEVER trust user input!
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attgl obal.net
=============== ===
William Gill wrote:
William Gill wrote:
>
isset() seems to be a waste of time also, since every field is being set
even if only with an empty string.
>
>Jerry Stuckle wrote:
><snip>
>That's what I meant, array_key_exist s wouldn't help.
>>William Gill wrote:
>>>I don't. I didn't want to perform an array_key_exist s( 'fieldname',
>>>$_POST ) before I test what value they contain.
>>>>
>>>>
>>>
>>Use isset($_POST['fieldname']).
>>>
>>>$_POST ) before I test what value they contain.
>>>>
>>>>
>>>
>>Use isset($_POST['fieldname']).
>>>
isset() seems to be a waste of time also, since every field is being set
even if only with an empty string.
>
hacker could create a page which links to yours and doesn't have those
fields set.
NEVER, NEVER, NEVER trust user input!
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attgl obal.net
=============== ===
Comment