Q:

submit form data to a remote url using jquery ajax,

I have a html form and validated it using jquery bassitance plugin, then after validation, I am trying to submit the data to a remote script(a script located on my different site) to insert into database. When I do this, I can see that in firebug it says "301 moved permanently and it never insert into database.
jQuery.ajax({
            type: "POST",
            url: "http://www.abc.com/insert.php",
            data: "fname="+ fname 

please advise what could be the reason.
regards

A:

Read here: http://bugs.jquery.com/ticket/3932
If a jQuery AJAX POST hits a redirect (like HTTP 301), jQuery will not automatically rePOST to the new location. I'd recommend updating your AJAX to POST to the new URL.

