Closed Bug 481902 Opened 15 years ago Closed 15 years ago

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

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: pabelmont2007, Unassigned)

Details

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
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
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.