pagina vuota. Perchè????
-
-
manca un . di unione ta 2 variabili o stringhe nella riga 20
-
-
vedi la riga 19...
-
-
<?php
if(isset($_SESSION['login']))
echo '<a href="materie.php">Area privata</a><br />';
else
echo '<a href="registrazione.php">Registrazione</a><br /><a href="login.php">Login</a><br />';
?> -
-
manca uno ' l'ho segnato in rosso...
-
-
Mi fa il redirect all'index, tutto funzionante.....
-
-
-
-
Da me funziona...
PS scirvi un messaggio solo o usa il tasto edita
-
-
-
Qui sul forum, scrivi 10 messaggi di fila ogni volta... come hai appena fatto adesso XD
-
quindi...arrivati alla fine, per proteggere una pagina devo inserire
questo codice:<?php // Includo la connessione al database require('indirizzo_file_config.php'); // Se non è stata definita la variabile manda l'utente alla homepage if(!isset($_SESSION['login'])) { header('Location: indirizzo_file_index.php'); exit; } ?>giusto???
-
si
-
Però qst mi da ancora pagina bianca...dove sbaglio???
orale_chimica.php<?php // Includo la connessione al database require('ture70.netsons.org/config-clas.php'); // Se non stata definita la variabile manda l'utente alla homepage if(!isset($_SESSION['login'])) { header('Location: indirizzo index.php'); exit; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD> <BODY> <center> <img src="ture70.netsons.org/index/icone/fulmine.gif"> <img src="ture70.netsons.org/scritte/chimica.gif"> <img src="ture70.netsons.org/index/icone/fulmine.gif"> </center> <br> <center> <font color="yellow" size="24"> SETTEMBRE </font> </center> <center> <table border="1" width="650" height="350"> <td width="15%"> <center> <font color="blue"> GIORNO </font> </center> </td> <td width="15%"> <center> <font color="blue"> INTERROGATI </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 15 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 16 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 17 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 18 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 19 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 20 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 22 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 23 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 24 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 25 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 26 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 27 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 29 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> <tr> <td width="15%"> <center> <font color="yellow"> 30 </font> </center> </td> <td width="85%"> <center> <font color="yellow"> #### - #### </font> </center> </td> </table> </center> </BODY> </HTML>
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi