PHP/HTML Question. How to change frame after login?

jeena1

Nuovo Utente
6 Mar 2009
2
0
0
I have a small login script written in PHP, everything in that regard is written. The Login is in one frame on top.

However, when the user logs in I want another frame to display a set of links only available to those logged in.

How can I do this?, Thanks!

______________________________

Polo Shirt Printing
T shirt Embroidery
 

Eliox

Utente Attivo
25 Feb 2005
4.390
3
0
Try This (if you use sessions):
PHP:
<?php
session_start();
if(!isset($_SESSION['login'])){
?>
<iframe src="your-page" width="xx" height="xx">
 not logged in content
</iframe>
<?php
}else{
?>
<iframe src="your-page2" width="xx" height="xx">
 logged in content
</iframe>
<?php
}
?>
 
Discussioni simili
Autore Titolo Forum Risposte Data
M Collegamento tra form html e script php PHP 4
L Ricezione dei dati su file php da modulo html PHP 6
C Dopo chiusura del tag php la stringa html va a capo PHP 1
A inserire variabile php colore in div html PHP 2
E Errore di lettura php in html PHP 8
M HTML e PHP Offerte e Richieste di Lavoro e/o Collaborazione 3
C Form email php su pagina index.html? PHP 21
Z Mod_rewrite da HTML in PHP PHP 3
C [RISOLTO]Inserimento variabile php in input html PHP 20
C Risalire al php da html PHP 27
webmachine [PHP] [JAVASCRIPT] Form strano in HTML PHP PHP 1
F [PHP] Form html PHP 2
G FORM HTML E PHP PHP 0
F [PHP] [HTML] Tabella cambia pagina responsive PHP 8
M [PHP] [HTML] Centrare in verticale un pulsante in una tabella PHP 3
M [PHP] Istruzione "echo" all'interno di codice html PHP 2
F [PHP] Importare file CSV in HTML PHP 12
T [PHP] [HTML] Dettagli che cambiano PHP 5
M [PHP] Come inserire codice html in un ciclo while PHP 2
T con oop creare un ciclo per una pagina dinamica html con php PHP 3
F [PHP] [HTML] Formmail PHP 0
ANDREA20 [PHP] [HTML] crea form di contatto PHP 4
D [PHP] [HTML] Pagina con permessi amministratore PHP 6
L [Wordpress]Precedenza Index.php a Index.html WordPress 1
Angelo Russo [PHP] [HTML] form contatti PHP 0
F [PHP] Importare file CSV in HTML PHP 3
C [PHP] Pagina html che legge file txt PHP 41
GiErre [PHP] [HTML] Disabilitare un link in funzione della piattaforma PHP 7
Y [PHP] [HTML] Modificare i quadranti PHP 1
F [PHP] [HTML] File legato ad action in un form PHP 1
T [PHP] [HTML] Action direttamente associate a onmouseover PHP 11
A [PHP] Inserimento url dinamici in pagina html PHP 3
Y [PHP] [HTML] Pagina referenti PHP 5
trattorino [PHP] [HTML] redirect iniezione su firefox PHP 5
D Come intrecciare PHP all'HTML PHP 1
S [PHP] [HTML] Come creare un grafico dinamico PHP 4
A [Retribuito][Offro] Restyling grafico portale PHP/HTML Offerte e Richieste di Lavoro e/o Collaborazione 0
andreas88 [PHP] [HTML] Pagina preventivi form contatti PHP 5
A [PHP] Formattazione Mail HTML HTML e CSS 5
J [PHP] [HTML] Trasferire dati da un form ad un dominio diverso. PHP 3
D [PHP] [RETRIBUITO] cercasi esperto programmatore per realizzare applicazione in html e codice iframe PHP 0
R [PHP] Problema stampa array bidimensionali con formula $html.=<<<myHtml... PHP 2
M [wordpress-galleria immagini]Inserire classe php in html PHP 0
F [PHP] [HTML] Redirect Complicato PHP 5
V Passare a PHP pagina bootstrap creata in HTML PHP 1
Y Performance html/php vs php/html PHP 2
Shyson [HTML] Spostare a sinistra codice php PHP 6
trattorino [PHP] [HTML] problema form PHP 1
G [PHP] [HTML] Sito web URL e altro PHP 3
G Siti web URL e altro (PHP, HTML) Presentati al Forum 1

Discussioni simili