Modify ↓
Ticket #8761 (closed bug: invalid)
array in post
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.next |
| Component: | ajax | Version: | 1.5.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
array = new Array(); array[8]='text'; $.post("file.php", {arr:array}, function(data){alert(data)}); / file.php return print_r($_POST); / alert - Array (
[arr] => Array
(
[0] => undefined [1] => undefined [2] => undefined [3] => undefined [4] => undefined [5] => undefined [6] => undefined [7] => undefined [8] => text
)
)
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

That behaviour is not a jQuery bug or even a bug at all.