Results 1 to 3 of 3

Thread: Loading different flash element with session control

  1. #1
    Join Date
    Aug 2007
    Location
    Malaysia
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Loading different flash element with session control

    Hi..guys!I have two flash menus which need to be displayed according the existence of session.Why the script can't execute the else part?

    Code:
    <table width="80%" height="319" border="0" align="center" bgcolor="#CCCCFF">
      
     <?
    if (!isset($_SESSION['gmemberid'])){
    ?>	
      <tr> 
        <td colspan="2"> <div align="center"> 
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="300">
              <param name="movie" value="flash%20menu/menu.swf">
              <param name="quality" value="high">
              <param name="LOOP" value="false">
              <embed src="flash%20menu/menu.swf" width="800" height="300" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>
          </div></td>
      </tr>
    <? 
    }
    
    else {
    ?>
    <tr> 
        <td colspan="2"> <div align="center"> 
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="300">
              <param name="movie" value="flash%20menu/menu2.swf">
              <param name="quality" value="high">
              <param name="LOOP" value="false">
              <embed src="flash%20menu/menu2.swf" width="800" height="300" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>
          </div></td>
          <td><b>Logged in as: <? echo $_SESSION['gmemberid']; ?></b></td><br><br>
      </tr>
    
    <?	
    }
    ?>

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Try putting echo $_SESSION['gmemberid']; before the if (!isset.... and see what it displays.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Aug 2007
    Location
    Malaysia
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Nothing is displayed.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •