php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22419 Trim()'d data not passed in $HTTP_POST_VARS
Submitted: 2003-02-25 14:04 UTC Modified: 2003-03-09 19:14 UTC
From: gpawlicki at earthlink dot net Assigned:
Status: No Feedback Package: Output Control
PHP Version: 4.2.3 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-02-25 14:04 UTC] gpawlicki at earthlink dot net
The trim() function, should of course remove whitespace surrounding a string variable. By default the value of $current_value is "XXXXX" in this display of a cell in a table rows of results extracted from a mySQL query:

<TD COLSPAN=2 VALIGN=TOP ALIGN=LEFT >
  <B>
    <TEXTAREA COLS= ".$num_cols."
	      ROWS= ".$num_rows." 
              NAME=\"".$i."_value\" 
              TABINDEX=\"".$tabindex."\">";
      echo "".trim($current_value)."
    </TEXTAREA>
  </B>
</TD>";

I am having two problems
1) There are two tabs being inserted after the character data (they were not written in the database). I don't know where they are coming from, but it seems that the trim() itself may not be working properly . . .

2) Worse, and what prompts the bug, is that on submit,  the control itself *INTERMITTENTLY* does not appear.  In some scenarios, this happens the second time through (e.g. going to another screen, canceling to return, and then going back). Specifically, the printr() display shows nothing for the control, though comparable fields  generated by iterated display of other data from same query do appear. There is no interim processing, the stuff is in the FORM and the underlying temporary tables, but not the HTTP_POST_VARS. 

Under some circumstances, this was 100% reproducible. Removing the trim statement prevented 2), but of course doesn't fix 1). . . 

Many thanks for your interest in addressing a worrisome glitch !

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-09 19:14 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Nov 28 23:03:13 2021 UTC