You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/12/08 12:27:05 UTC
DO NOT REPLY [Bug 15166] New: -
Wrong POST variables value
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15166>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15166
Wrong POST variables value
Summary: Wrong POST variables value
Product: Apache httpd-2.0
Version: 2.0.43
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Major
Priority: Other
Component: All
AssignedTo: bugs@httpd.apache.org
ReportedBy: debaser_68@hotmail.com
NOTICE: I also posted this as PHP bug on bugs.php.net (bug ID: 18648)
I'm trying to retrieve a simple variable using the POST method but
I've found a very strange behaviour.
Here's my code chunks
Page 1: a simple form with a select HTML tag
...
<select name="maketframe" size="1">
<option value="USA">USA-United States</option>
<option value="-All-">-All-</option></select>
...
Page 2: used to collect the variable
if (isset($HTTP_POST_VARS["marketframe"]))
{
$strCountryCode = $HTTP_POST_VARS["marketframe"];
}
I expected to find only the value assigned to the HTML attribute value, like
this:
$strCountryCode = "USA"
but instead the value is the concatenation of both the value and the whole
$HTTP_POST_VARS associative array content, like this:
$strCountryCode = "USAmaketframe=USA"
Any idea (I've also tried using $_POST but nothing changed, using GET instead
it works fine) ??
OS Version: Windows 2000 Adv. Server SP3
Web Server: Apache 2.0.43
PHP Version: 4.3.0-dev (Oct 20 2002 16:11:45), API Filter, accessing MS SQL
Server 7
Thanks !!
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org