mercredi 27 décembre 2017

how to resolve Undefined index: venue in C:\xampp\htdocs\chemistry\seminar.php on line 29 [duplicate]

I have create dynamic seminar page for iit indore but problem is that if after login open the seminar page then the Undefined index: venue in C:\xampp\htdocs\chemistry\seminar.php on line 29 this issue are occur but functionality are run properly. and if the seminar page data are fill and submit then the issue are remove not shown . So why these issue occur and how to resolve this issue please help...

<?php
include 'connection.php';
session_start();
//echo $_SESSION["username"];
if(isset($_SESSION["username"]))
{

}
else
{
    header('location:login.php');
}

?>

<?php
$con = mysqli_connect('localhost','root','','chemistry_web');

if(!$con)
{
    echo 'Not connected';
}
if(!mysqli_select_db($con,'chemistry_web'))
{
    echo 'Databse not selected';
}
$title1    = $_POST['title'];
$description1    = $_POST['description'];
$venue1 = $_POST['venue'];

$sql = "INSERT INTO seminar_tab(Title,Description,Venue) VALUES ('$title1','$description1','$venue1')";
if(mysqli_query($con,$sql))
{
    //echo 'Not Inserted';
}
else
{
    echo 'Inserted';
}

$sql1 = "SELECT Title,Description,Venue FROM seminar_tab";
$result = $con->query($sql1);
?>


<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Education</title>
    <link href="assets/plugins/bootstrap/bootstrap.css" rel="stylesheet" />
    <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />

    <link href="assets/css/style.css" rel="stylesheet" />
    <link href="assets/css/main-style.css" rel="stylesheet" />
    <link href="assets/plugins/morris/morris-0.4.3.min.css" rel="stylesheet" />
   </head>
<body>

    <div id="wrapper">        
        <nav class="navbar navbar-default navbar-fixed-top" role="navigation" id="navbar">          
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="dashboard.html">
                    <img src="assets/img/logo.png" alt="Chemistry"/>
                </a>
            </div>
            <ul class="nav navbar-top-links navbar-right">               
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-3x"></i>
                    </a>                  
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="#"><i class="fa fa-user fa-fw"></i>User Profile</a>
                        </li>
                        <li><a href="#"><i class="fa fa-gear fa-fw"></i>Settings</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i>Logout</a>
                        </li>
                    </ul>
                </li>
            </ul>
        </nav>        

        <nav class="navbar-default navbar-static-side" role="navigation">           
            <div class="sidebar-collapse">               
                <ul class="nav" id="side-menu">                   
                    <li class="sidebar-search">
                    </li>
                    <li class="selected">
                        <a href="dashboard.php"><i class="fa fa-dashboard fa-fw"></i>Dashboard</a>
                    </li>                  
                    <li>
                        <a href="#"><i class="fa fa-files-o fa-fw"></i>Home Page Settings<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="seminar.php">Seminar Settings</a>
                            </li>

                        </ul>
                    </li>
                </ul>               
            </div>            
        </nav>      
        <div id="page-wrapper">
            <div class="row">               
                <div class="col-lg-12">
                    <h1 class="page-header">Seminar Settings</h1>
                </div>              
            </div>
            <form action="" method="post" >
            <div class="form-group">
                <label>Seminar Title</label>
                    <input id="title" name="title" class="form-control" placeholder="Enter title">
            </div>
            <div class="form-group">
                <label>Summary</label>
                    <textarea id="description" name="description" class="form-control" rows="3"></textarea>
            </div>
            <div class="form-group">
                <label>Venue & Date</label>
                    <textarea id="venue" name="venue" class="form-control" rows="3"></textarea>
            </div>
            <button id="submit" name="submit" type="submit" class="btn btn-primary">Save & Publish</button>
        </form>
        </div>
    </div>
    <script src="assets/plugins/jquery-1.10.2.js"></script>
    <script src="assets/plugins/bootstrap/bootstrap.min.js"></script>
    <script src="assets/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="assets/plugins/pace/pace.js"></script>
    <script src="assets/scripts/siminta.js"></script>
    <script src="assets/plugins/morris/raphael-2.1.0.min.js"></script>
    <script src="assets/plugins/morris/morris.js"></script>
    <script src="assets/scripts/dashboard-demo.js"></script>
</body>
</html>



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2DZ8twN
via IFTTT

Aucun commentaire:

Enregistrer un commentaire