Originariamente inviato da whisher
Ciao.
Poi fare una cosa del genere:
Codice PHP:
<?php 
if(isset($_POST['page']))
{
    
$mode $_POST['page'];
    switch(
$mode)
    {
        case 
"home":
        
header("Location: home.php");
        exit;
        break;
        case 
"blog":
        
header("Location: blog.php");
        exit;
        break;
        default:
        
header("Location: default.php");
        exit;
        break;
    }
}
?>
<form action="<?php echo $_SERVER['PHP_SELF'?>" method="post" name="frm">
<input name="page" type="text" />
<input name="submit" type="submit" value="submit">
</form>
Grazie ho inserito il codice ma purtroppo quando clicco submit mi appare
Warning: Cannot modify header information - headers already sent by (output started at /home/mhd-01/www.infect3d.net/htdocs/prova.php:3) in /home/mhd-01/www.infect3d.net/htdocs/prova.php on line 10
La decima riga si riferisce al primo header... che c'è che non va? ._.

------------------------

Ciao, non voglio sembrarti antipatico.
Io ho acquistato e letto questo testo PHP e MySQL Guida completa magari ti puo essere utili.
Affatto! Grazie del consiglio vedrò di procurarmelo