Hi all,

I'm really new to Jquery. I've a basic ajax form post, my question is
how can I take the data section of the below request in
pathSubmit.php? My aim is to pass some variables(in the case below
pat=12 ) from host php file to the file I'm calling in Ajax without
using ? sending and session variables. I'd be happy if someones help
me        :)

I tried $_POST['pat'], $_GET['pat'] and $_REQUEST['pat'] in the file
I'm calling but none take the value.

Thanks.

     var options = {
                        type: 'POST',
                        url:  'pathSubmit.php',
                        data : 'pat=12',
                        dataType:  'json',

                        beforeSubmit: function(){
                        },

                        success: function(json){
$(form_message).removeClass().addClass(json.type).html
(json.message).fadeIn('slow');

                            if(json.type == 'success')
                                $(form).clearForm();
                        }
                    };
                    $(form).ajaxForm(options);

Reply via email to