Salve a tutti.
Ho un problema col redirect(header)posto il codice:
messaggio di errore:codice:<html> <head> </head> <body> <?PHP require("header.php"); $gall=$_GET["txtnuovaGalleria"]; $query="select * from gallerie where titolo='".$gall."'"; $errore=""; $result=safe_query($query); if(mysql_numrows($result)>0) $errore.="[*]Attenzione Galleria gia Esistente"; if(empty($gall)) { $errore.="[*]Attenzione Nome Galleria Vuoto"; header("location: areariservata.php");//questo non funziona } if(empty($errore)) { $query="insert into gallerie (titolo) values('".$gall."')"; safe_query($query); } else { echo($errore); //header("location: areariservata.php"); } ?> </body> </html>
Warning: Cannot add header information - headers already sent by (output started at c:\programmi\apache group\apache\htdocs\dummy\inseriscigalleria.php:6) in c:\programmi\apache group\apache\htdocs\dummy\inseriscigalleria.php on line 18
come faccio a fare vedere una breve descrizione per 5 secondi e poi essere mandato ad un altra pagina?cosi' non funziona!!
Grazie

Rispondi quotando