By manuelBS on
Hey, i have friendly URLS on. In my Drupal Modul I have a path registered /test in hook_menu
No i want to do the fallowing:
I have a Javascript in my Form that creates an Array arr. I want to submit this array to my PHP Script using $.get(drupalurl/test, {'data[]', arr}, function (data) {foo bar})
I read that this wil work on
http://trippinbilly25.wordpress.com/2008/07/02/how-to-submit-javascript-...
but if I do print_r($_GET) in my Callback defined in hook_menu the is only the pram q=test and not my array.
Can anybody help me please?
Thanks an best regards
Comments
If you wanna submit array
If you wanna submit array using jquery ajax you should to post the data.