Hi Murray,
Try this:
reset( $HTTP_POST_VARS );
while(list($k,$v)=each($HTTP_POST_VARS)){
$$k = trim($v);
}
This will set them to global and trimmed.
reset( $HTTP_POST_VARS );
while(list($k,$v)=each($HTTP_POST_VARS)){
$HTTP_POST_VARS[$k] = trim($v);
}
This will leave them in the HTTP_POST_VARS array but they will be trimmed - this will not change the global vars.
Bye,
Matt