jquery wont send with post method
<p>nothing is being sent with $.post</p>

<pre><code>     function clicked()
 {
   var $contact_title=$("#contact_title");
   var $contact_summary=$("#bbcode");
   alert($contact_title.val());// How do I get the contents of the title
   alert($contact_summary.val());// How do I get the contents of the textarea
   $.post('jquery_send_admin.php',{ title:$contact_title, content:$contact_summary }, function(data){ alert("Message was sent") }, 'html');
 }
</code></pre>

<p>I get exceptions in my console error..like the following:</p>

<p>UPDATE:
no data is inserted on the next page..why?!?</p>

<pre><code>     if( isset($_POST["title"]) &amp;&amp; isset($_POST["content"]) )
  {
      $title=mysql_escape_string($_POST["title"]);
      $content=mysql_escape_string($_POST["content"]);

       $result=mysql_query("INSERT INTO users (query_title,query_message) VALUES(''$title', '$content')") or die(mysql_error());

   }
</code></pre>

<p>The following error happens:</p>

<pre><code>Error: uncaught exception: [Exception... "Could not convert JavaScript argument"  nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"  location: "JS frame :: http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js :: &lt;TOP_LEVEL&gt; :: line 16"  data: no]
</code></pre>

<p>UPDATE:
Thats what I request from the page, which is triggered by jquery:</p>

<pre><code>    &lt;?php
echo 'outside';
  if( isset($_POST["title"]) &amp;&amp; isset($_POST["content"]) )
  {
      echo 'inside';
      $title=mysql_escape_string($_POST["title"]);
      $content=mysql_escape_string($_POST["content"]);

       $result=mysql_query("INSERT INTO users (query_title,query_message) VALUES(''$title', '$content')") or die(mysql_error());

   }

?&gt;
</code></pre>
