Jquery Ajax read post values with php
<p>I'm sending the following info to a php file. data contains 'one' and 'two'. 'One' contains the serialized form and two contains similar custom info. How can i read those post values with php. I want to be able to differentiated between the value contained in one and value contains into two. </p>

<pre><code>$('form').submit(function() {
     x = $(this).serialize(),
     test = 'testing=whatever&amp;something=else';
    $.ajax({
        type: 'POST',
        data: {'one':x, 'two':test}
        ...
    })
})
</code></pre>

<p>How can i read the values in php in such a way where i can do </p>

<pre><code>$one = $_POST['one'];
foreach($one as $key=&gt;$value){ $message.= $key.": ".$value."\r\n"; }
</code></pre>
