Specifically,
If I have 3 HTTP_POST_VARS:
HTTP_POST_VARS[client] = test1
HTTP_POST_VARS[directory]= test2
HTTP_POST_VARS[password] =
and I don't know the names of the vars ahead of time, how would I run a
check to see if they exist and then get the specific POST_VARS's value. This
is what
To answer your question:
$postfld = $HTTP_POST_VARS[$fname[$i]];
should work. BTW, I just use something like:
if ($client) { // or in your case: if (${$fname[$i]})
// code to be evaluated if $client exists and is not 0, not null/void/nil, and is
not an empty string
}
J
Matthew DeChant
2 matches
Mail list logo