return null in ajax
<p>i have this code:</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function() {

function doAjax(url) {
    $("#customForm").submit(function() {
        var formdata = $("#customForm").serializeArray();
        $.ajax({
            url: url,
            type: "post",
            dataType: "json",
            data: formdata,
            success: function(data) {
                switch (data.livre) {

                case 'tituloLivre':
                    $("#msgbox2").fadeTo(200, 0.1, function() {
                        $(this).html('error').fadeTo(900, 1);
                    });
                    break;

                default:
                    $("#msgbox2").fadeTo(200, 0.1, function() {
                        $(this).html('success!').fadeTo(900, 1, function() {
                            $('#conteudo').load('test.php'); // show NULL and must be programmer
                        });
                    });
                    break;
                }
            }
        }); 
        return false;         
    }); 
}
doAjax('sent.php');
doAjax('dojo/test.php');   
});
&lt;/script&gt;
</code></pre>

<p>test.php</p>

<pre><code>&lt;?php
include ('includesMy.php');
$form = $_POST['item'];
$oferta = $form['oferta'];

var_dump($oferta);

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

<p>what is sent:</p>

<pre><code>item[oferta] programmer
</code></pre>

<p><strong>The question is: why i get null value instead of programmer word ?</strong></p>

<p>POST test.php - returns programmer, but GET test.php returns null. Basically the load (test.php) is retrieved without ajax influence.</p>
