xmlHttp2 function (var params coding needed!)
<p>In this page where this code is,there is a form of 3 details
country,gender,topic</p>

<p>So the idea is to send these 3 details to startChat.php and so that the php can extract the 3 details.</p>

<p>The code is as below</p>

<pre><code>function startChat()
            {
            xmlHttp2 = GetXmlHttpObject();

            if (xmlHttp2 == null)
                {
                alert("Browser does not support HTTP Request");
                return;
                }

            var url = "startChat.php";
            var params = "country,gender,topic";&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;what coding this should be?????
            xmlHttp2.open("GET", url, true);
            xmlHttp2.send(params);&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;is this correct?????
            xmlHttp2.onreadystatechange = stateChanged2;               
            }
</code></pre>

<p>And also i would need help with the startChat.php part </p>

<pre><code>    &lt;?php

include('config.inc.php');
$preference="$_GET[params]";&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;what coding this should be????????????????????????????????????

include('database.inc.php');
mysql_query("INSERT INTO users (inchat,preference) values('N','$preference')");

echo mysql_insert_id();

mysql_close($con);

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

<p>Please help,asking sincerely :(</p>
