Bug Tracker

Opened 9 years ago

Closed 9 years ago

#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:
Blocked by: Blocking:

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 (1)

comment:1 Changed 9 years ago by Rick Waldron

Component: unfiledajax
Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.