carriage return in multipart/form-data form post
| From: | Jeff Schwartz | Date: | Mon, 05 Mar 2001 20:53:02 +0000 |
| Subject: | carriage return in multipart/form-data form post | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42671@lists.php.net to get a copy of this message | ||
We've just moved to a new server and I'm running into an odd problem. The
code is below. On my old server it correctly returns:
[test]
t 116
e 101
s 115
t 116
But on my new server I get:
[ test]
13
10
t 116
e 101
s 115
t 116
Has anyone else run into this?
<?php
echo "[$action] <BR> ";
while ($action){
$c = substr($action,0,1);
$action = substr($action,1);
echo "$c " . ord($c) . "<BR>";
}
?>
<FORM ENCTYPE='multipart/form-data' ACTION='z.html'
METHOD='POST'>
<input type="hidden" name="action" value="test">
<INPUT TYPE='submit' VALUE='Process'></FORM>
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/