JQuery Ajax - Request sending

JQuery Ajax - Request sending

Hi,
 
This is my first ever application in PHP,Mysql and JQuery. I am novice in all of these technology and learning through the manuals and books.
I got stuck into a situation where I am using JQuery's ajax method to submit a form..
I want to pass the url as "index.php?action=product" to jQuery.ajax's url parameter and the type parameter is "POST". 
Check out my code below..
 
 
  1. $.ajax({
         type  : "POST",
         url   : "index.php?action=product",
         data  :  strPostData,
         success  : function(msg){
          //On success execute the code below
          }
     






But it is not redirecting to the specified page (which is product )and insted shows default page (login) .
My code work like this,I am using Index.php  as the common/main page from where it will include and display the required page as mentioned in the "action" parameter.  If it doesnt find action parameter then it will show the default page (which is login page).
 
The problem is, It is ignoring the "action=product" parameter and considering "index.php" only.
 
What should I do to make it work. I have tried the .load() method also but same thing happens.
 I have alredy spent many hours and banging my head against the wall.. Also googled but found nothing..
Can anyone help me ? Please?