Re: [PHP3] Pipes in my data

From: Date: Thu, 22 Jun 2000 03:49:23 +0000
Subject: Re: [PHP3] Pipes in my data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2574@lists.php.net to get a copy of this message
In article <200006162206.PAA16456@lennon.postino.com>, aldham@lennon.postino.com wrote: > I am having trouble with pipe characters getting into my data when > using PHP to generate forms. If data is put into a INPUT field, PHP > is appending a pipe on every space character that is passed to the > CGI script the form calls. Is this a bug, or an undocumented feature.;-) That's pretty weird... Check the MagicQuotes settings in your php.ini to make sure they are sane. And, I guess, maybe, an Option key on a Mac being stuck down could do that, or something, since that gives some weird non-ASCII space character... Is this a new install, or any recent changes or...? Maybe print out the ASCII values of the data you're getting to be sure it really is a pipe after each space, and not some other weird character being put in place of a space. NAME=text for ($i = 0; $i < strlen($text); $i++){ echo "\$text[$i] is ", $text[$i], " (", ord($text[$i], ")<BR>\n"; } -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#2574) next »