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

  • Creatore Discussione Creatore Discussione jeena1
  • Data di inizio Data di inizio

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
 
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