Manually Send Ajax request to a PHP file It seems that the Drupal Ajax  API are comming a little un handy for my current project so i was trying to do the ajax request the good old way with actual Javascript.

I have this code

valdBut.click(function(event){
    event.preventDefault();

            jQuery.ajax({
            type: "POST",
            dataType: 'json',
            data: grabValue(),
            url: urkl,
            success: function () {

                alert(back)

            }
        });
    alert(grabValue())

})


What i am wondering is how should i link that URL value to my module page, so that my user_login hook receive the data sent via Ajax ? 

Thanks for any help, 
Manu
For most functionality that you require with drupal, there is typically a module that already does what you are after or close to it.

I would recommend either:


using the module http://drupal.org/project/ajax_register
or looking at the code for the above module and make one that suits your exact needs


Hope this helps