jQuery post/ajax post problem
<p>HI im trying to send a jquery post/ajax to send some variables to a php file. </p>

<pre><code>&lt;script src="/jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

var music ='';
var genre ='';
var language ='';
var nasheedid = "&lt;? echo $postid; ?&gt;";
var session = "&lt;? echo $_SESSION['SESS_TMP']; ?&gt;";

$(function(){
$('.submit').click(function(){
var postdata = {pmusic: music, pgenre: genre, plang: language, psession: session};

$.ajax({
type: 'post',
cache: false,
url: 'addmusic.php',
data: postdata,
success: function (msg) {
alert(msg);
},
dataType: "text",
});

}); 
});   
</code></pre>

<p>now regardless of where i post the stuff to, (even if i change the url to url: blahblah.php123 I still get the same results (which is):</p>

<p>The alert displays the entire source code of the file (that the above code is on)</p>
