[liphp] explode problem
Christopher R. Merlo
[email protected]
Thu, 5 Jun 2003 16:01:00 -0400
On 2003-06-05 10:47 -0400, Bhulipongsanon, Pinyo <[email protected]> wrote:
> foreach (array_keys($_POST) as $key ) {
> if ( trim($_POST[$key]) == "" ) {
> // set status as incomplete
> }
> }
If you can't get to $_POST because you have globals off, you may be
able to use $HTTP_POST_VARS in its place.
Also, you may get snagged once in a while checking for "". I usually
use:
if( !is_null( $HTTP_POST_VARS[ $key ] ) ) ...
-c
--
[email protected] http://turing.matcmp.ncc.edu/~cmerlo
Pushing 30 is exercise enough.