note 14530 added to language.variables.external.php

From: Date: Thu, 02 Aug 2001 20:42:55 +0000
Subject: note 14530 added to language.variables.external.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16246@lists.php.net to get a copy of this message
For enctype="multipart/form-data" submissions, the value of string variables (at least) may have a spurious initial new line, which I suspect originates from the blank line in the actual layout of this encoding type (take a look at the w3c specs for details). To remove this stray debris, a simple: $my_form_var = ltrim($my_form_var); should do it. http://www.php.net/manual/en/language.variables.external.php

« previous php.notes (#16246) next »