Passing JavaScript Array To PHP Through JQuery $.ajax

Starship

New Member
I want to manipulate a javascript array in PHP. Is it possible to do something like this?\[code\]$.ajax({ type: "POST", url: "tourFinderFunctions.php", data: "activitiesArray="+activities, success: function() { $("#lengthQuestion").fadeOut('slow'); } }); \[/code\]Activities is a single dimensional array like:\[code\]var activities = ['Location Zero', 'Location One', 'Location Two'];\[/code\]The script does not complete when I try this.. Any Ideas or reading materials that will help me accomplish this?
 
Back
Top