with a FORM, "submit" with NAME of "A B" sends to $_POST a NAME string "A_B" rather than "A B"

RESOLVED INVALID

Status

()

Firefox
General
RESOLVED INVALID
9 years ago
9 years ago

People

(Reporter: pabelmont, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6



BUG? OR OFFICIAL SPECIFICATION?  The <blank> in "All Income" becomes a "_".


HTML:
<input type='submit' name='Click:DelCat:All Income' value='Remove Category'>
POST:
 [Click:DelCat:All_Income] => Remove Category




Reproducible: Always

Comment 1

9 years ago
Thanks for reporting, but this is no bug.

Firefox correctly sends the name and value over HTTP. However, the receiving software (in this case PHP) can't deal with a white space in the name.

Long time ago, a name of "test" became the variable $test. This method is still available but deprecated.

Until this method is removed from PHP, letters that aren't allowed in variable names will be replaced by the underscore.

That's all.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.