Help - what wrong here?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help - what wrong here?

    What wrong here?
    <?php
    echo $session->KeyExists("edittable") ? "Edit" : "Create";
    echo " site</div>\n<div class=\"create\">\n<h2 class=\"headding\">";
    echo $session->KeyExists("edittable") ? "Edit" : "New";
    echo " Site</h2>\n";
    if (!isset($_SESSION['siteCreationProgress']) && $_SESSION['siteCreationProgress'] == 1)
    {
    include_once(WAPGO_ROOT . "/modules/Site/new/create1.tpl");
    }
    else if ($_SESSION['siteCreationProgress'] == 2)
    {
    include_once(WAPGO_ROOT . "/modules/Site/new/create2.tpl");
    }
    else if ($_SESSION['siteCreationProgress'] == 3)
    {
    include_once(WAPGO_ROOT . "/modules/Site/new/create3.tpl");
    }
    else if ($_SESSION['siteCreationProgress'] == 4)
    {
    include_once(WAPGO_ROOT . "/modules/Site/new/create4.tpl");
    }
    echo " \n<p class=\"para\"></p></div>\n";




    ?>
    what i got in display back is:
    Create Site
    New site.

    Meanwhile it should be:
    Create Site
    New site

    ( step 1 here. )

    Please comment. I have to fix this.

    #2
    Start a session
    libra.wen.ru

    Comment


      #3
      how ??? Please.

      Comment


        #4
        session_start();

        Comment


          #5
          same result bro.

          Comment


            #6
            <?php
            session_start();

            echo $session->KeyExists
            ("edittable") ? "Edit" : "Create";
            echo " site</div>\n<div class=
            \"create\">\n<h2 class=
            \"headding\">";
            echo $session->KeyExists
            ("edittable") ? "Edit" : "New";
            echo " Site</h2>\n";
            if (!isset($_SESSION
            ['siteCreationProgress']) && $_
            SESSION['siteCreationProgress']
            == 1)
            {
            include_once(WAPGO_ROOT . "/
            modules/Site/new/create1.tpl");
            }
            else if ($_SESSION
            ['siteCreationProgress'] == 2)
            {
            include_once(WAPGO_ROOT . "/
            modules/Site/new/create2.tpl");
            }
            else if ($_SESSION
            ['siteCreationProgress'] == 3)
            {
            include_once(WAPGO_ROOT . "/
            modules/Site/new/create3.tpl");
            }
            else if ($_SESSION
            ['siteCreationProgress'] == 4)
            {
            include_once(WAPGO_ROOT . "/
            modules/Site/new/create4.tpl");
            }
            echo " \n<p class=\"para\"></
            p></div>\n";
            ?>
            even if its fixed like this, same problem. Please anybody? Take a look at this...?

            Comment

            Working...
            X