[Php-it] Rompicapo con array $_POST

Matteo C. - MIF matteo.c at mif.it
Thu Sep 21 16:25:45 CEST 2006


Ciao!

Sto impazzendo, all'improvviso i dati che invio tramite form non mi 
arrivano più a destinazione! Mi spiego meglio:

Codice form invio:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <title>Test form _________________________</title>

    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />

    </head>

    <body>

    <form id="testform" name="testform" method="post"
    action="/adminfiles/test.php" target="_self">
            <span>Test</span>
            <input id="test" title="test" value="" type="text"
    maxlength="32" size="20" />
            <input id="b01" title="Input" value="Prova" type="submit" />
    </form>

    </body>
    </html>

Codice php che riceve l'input:

    <?
    function debug_var($public,$htmlencode=true) {
       
        $caller = debug_backtrace();
        $caller_file = $caller[0];
        $caller_class = isset($caller[1]['class']) ? $caller[1]['class']
    : 'Non definita';
       
        echo '<div class="debug"><span class="title">Debug
    variabile:</span>';
        echo '<div class="variable">Valore: '.(($htmlencode) ?
    htmlentities(var_export($public,true)) :
    var_export($public,true)).'</div>';
        echo '</div>';
        return true;
       
    }

    debug_var($_POST);
    ?>

Output:

    Debug variabile:
    Valore: array ( )

L'array $_POST è sempre vuoto! Fino a 2 ore andava tutto, ora, senza 
avere toccato nulla, succede sta cosa, e sinceramente non so dove 
sbattere la testa, avete idee?

Ciao e grazie!
Teo


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ziobudda.net/pipermail/php-it/attachments/20060921/7ed43d53/attachment.html


More information about the Php-it mailing list