| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2000-08-02 00:00 UTC] waldschrott@php.net
  [2000-08-02 23:38 UTC] pete at byways dot org
  [2000-08-31 11:40 UTC] sniper@php.net
  [2000-08-31 23:52 UTC] pete at byways dot org
  [2000-09-04 22:22 UTC] sniper@php.net
  [2004-03-03 08:24 UTC] fieg at digital4 dot nl
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 12:00:01 2025 UTC | 
I am running PHP 4.0.0 as a CGI with Roxen 2.0.50. When POSTing form data to a PHP script, the last POST variable has a newline appended. I got it to happen using this simple script that shows the POSTed variables URLencoded. <html> <head><title>POST Test Form</title></head> <body> <form method=POST action=form_test.html> <input type=text name=FIELD1 size=10> <input type=text name=FIELD2 size=10> <input type=submit name=BUTTON value=Submit> <input type=button name=BUTTON2 value="JS Submit" onClick="this.form.submit()"> </form> <p>POST variables, UrlEncoded to show possible garbage:</p> <? if (is_array($HTTP_POST_VARS)): reset($HTTP_POST_VARS); while (list($var, $value) = each($HTTP_POST_VARS)): echo "$var: ".UrlEncode($value)."<br>"; endwhile; endif; ?> </body> </html> This could be a Roxen problem, but I'm reporting it both places in hopes someone can help!