🔒 Closed Undefined index: id in ????? C:\xampp\htdocs\inventory\index.php in line 49

Status
Not open for further replies.
Patulong naman po mga boss di ko po alam kung nu pong gagawin ko po eh. di ko po maayos eh. ito po yung line 49 po sa pic po. yung my underline po sana po matulungan niyo po ako......

Code:
<?php
    //Start session
    session_start();
   
    //Unset the variables stored in session
    unset($_SESSION['SESS_MEMBER_ID']);
    unset($_SESSION['SESS_FIRST_NAME']);
    unset($_SESSION['SESS_LAST_NAME']);
?>
<!DOCTYPE html>

<html>

    <head>

        <meta charset="utf-8" />

        <title>Inventory</title>

       

        <!-- Our CSS stylesheet file -->

        <link rel="stylesheet" href="styles.css" />

       

        <!--[if lt IE 9]>

          <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>

        <![endif]-->

    </head>

   

<body>
<div style="margin:0 auto; width:300px; padding-left: 32px; margin-top:50px;">
    <?php
if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
echo '<ul class="err">';
foreach($_SESSION['ERRMSG_ARR'] as $msg) {
echo '<li>',$msg,'</li>';
}
echo '</ul>';
unset($_SESSION['ERRMSG_ARR']);
}
[B][U]$remark=$_GET['id'];[/U][/B]
if($remark=='success')
{
echo '<ul>';
echo '<li>'." Registration Success You can now login ".'</li>';
echo '</ul>';
}
?>
</div>


        <div id="formContainer">

            <form id="login" method="post" action="login.php">

                <a href="#" id="flipToRecover" class="flipLink">Forgot?</a>

                <input type="text" name="username" id="loginEmail" placeholder="Username" />

                <input type="password" name="password" id="loginPass" placeholder="Password" />

                <input type="submit" name="submit" value="Login" />

            </form>

            <form id="recover" method="post" action="register.php">

                <a href="#" id="flipToLogin" class="flipLink">Forgot?</a>
                <input type="text" name="adminpass" id="loginEmail" placeholder="Admin Password" style="top: 138px;" />
                <input type="text" name="regusername" id="loginEmail" placeholder="Username" />
                <input type="password" name="regpassword" id="recoverEmail" placeholder="Password" />

                <input type="submit" name="submit" value="Save" />

            </form>

        </div>



    <!-- JavaScript includes -->

    <script src="jquery-1.7.1.min.js"></script>

        <script src="script.js"></script>


   

</body>

</html>
 
Dear rudolfo1992,

Since 2 years have passed since the last reply in this thread, I am locking it to prevent necroposting. Feel free to start a new thread or contact any forum staff if you want this to be reopened.

Thread closed.
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 1K
    Views
  • 2
    Participants
Last reply from:
Unknown user

Trending Topics

Online now

Members online
361
Guests online
1,585
Total visitors
1,946

Forum statistics

Threads
2,293,545
Posts
29,084,613
Members
1,208,846
Latest member
seklaluseknang
Back
Top