javascript - how to hide this notice -


this question has answer here:

i want ask how hide below notice.

notice: session had been started - ignoring session_start() in c:\xampp\secxampp\htdocs\mksfinalasd\web\check.php on line 2

my first code check1.php

<?php session_start(); if(isset($_session['username']))     include ("preorder.php"); else     include("login.php"); ?> 

this sec code check.php.

<?php session_start(); if(isset($_session['username']))     include ("top2.php"); else     include("top.php"); ?> 

the problem start when click book button in code

<!--  author: w3layouts  author url: http://w3layouts.com  license: creative commons attribution 3.0 unported  license url: http://creativecommons.org/licenses/by/3.0/  -->  <!doctype html>    <html>  <head>  <title>free web-hosting website template | website-builder :: w3layouts</title>  <meta http-equiv="content-type" content="text/html; charset=utf-8" />  <link rel="stylesheet" href="css/style.css" type="text/css" media="all" />  <script type="text/javascript" src="js/jquery.js"></script>  </head>  <body>  <?php  include("check.php");  ?>  <div class="blue-bar">  <div class="wrap">  <div class="host-content">      <div class="plans-masthead" style="overflow:visible;">       	<h2>car grab <em>service</em></h2>           <ol>              <li>easy make booking </li>              <li>fast respond within 15 minutes</li>              <li>dadicated driver license , certificate</li>          </ol>      </div>       <div class="linux-banner">       	  <img src="images/car.gif" style="top:15px;" />      </div>      <div class="clear"></div>     <div class="row-indent">      	<h2 class="h2-subheading">select <em>destination</em></h2>  	</div>  <div class="host-main">   <div class="plans-columns-wrp">        <div class="grids-hosting">          <ul class="plan-list us_plan ">  	       <form name="hostingplan" id="hostingplan_4" method="post">  		    <img src="images/download.jpg" style="top:15px;" />  	        <li class="p-name"><span class="pl-title">ktm&nbsp;<span style="border-left: 2px ridge  #2396ff; padding:4px 0;">&nbsp;tangjung malim<sub></sub></span><b></b></span></li>  	        <li class="p-feat">web space - 3 gb</li>  	        <li class="p-feat1">get base website</li>  	        <li class="p-feat">unlimited  data transfer</li>  		        <li class="p-dropdown">  		            <select name="duration">  		                <option value="1">  1  year @ <span class=webrupee>$.</span> 50/month </option>  		            </select>  		        </li>  	        <li class="p-button"><a class="txt-button" href="check2.php">book now</a></li>  	        </form>  		</ul>          <ul class="plan-list us_plan ">  	       <form name="hostingplan" id="hostingplan_4" method="post">  		    <img src="images/baru.jpg" style="top:15px;" />  	        <li class="p-name"><span class="pl-title">new&nbsp;<span style="border-left: 2px ridge  #2396ff; padding:4px 0;">&nbsp;campus<sub></sub></span><b></b></span></li>  	        <li class="p-feat">web space - 3 gb</li>  	        <li class="p-feat1">get base website</li>  	        <li class="p-feat">unlimited  data transfer</li>  		        <li class="p-dropdown">  		            <select name="duration">  		                <option value="1">  1  year @ <span class=webrupee>$.</span> 50/month </option>  		            </select>  		        </li>  	        <li class="p-button"><a class="txt-button" href="check2.php">buy now</a></li>  	        </form>  		</ul>  		<ul class="plan-list us_plan ">  	       <form name="hostingplan" id="hostingplan_4" method="post">  		    <img src="images/lama.jpg" style="top:15px;" />  	        <li class="p-name"><span class="pl-title">old&nbsp;<span style="border-left: 2px ridge  #2396ff; padding:4px 0;">&nbsp;campus<sub></sub></span><b></b></span></li>  	        <li class="p-feat">web space - 3 gb</li>  	        <li class="p-feat1">get base website</li>  	        <li class="p-feat">unlimited  data transfer</li>  		        <li class="p-dropdown">  		            <select name="duration">  		                <option value="1">  1  year @ <span class=webrupee>$.</span> 50/month </option>  		            </select>  		        </li>  	        <li class="p-button"><a class="txt-button" href="check2.php">buy now</a></li>  	        </form>  		</ul><br><br><br>          <ul class="plan-list us_plan plan-featured">  		    <form name="hostingplan" id="hostingplan_5" method="post">  		        <img src="images/images.jpg" style="top:15px;" />  		        <li class="p-name2"><span class="pl-title">town&nbsp;<span style="border-left: 2px ridge  rgb(240, 180, 94); padding:4px 0;">&nbsp;tangjung malim<sub></sub></span><b></b></span></li>  		        <li class="p-feat">web space - 20 gb</li>  		        <li class="p-feat1">everything need site</li>  		        <li class="p-feat">depending on business</li>  		              <li class="p-dropdown">  		            <select name="duration">  		                <option value="1">  1  year @ <span class=webrupee>$.</span> 500.00/month </option>  		            </select>  		        </li>  		        <li class="p-button"><a class="txt-button" href="check2.php">buy now</a></li>  		        </form>  		 </ul>        </div>  	    </div>  </div>  <script type="text/javascript">      $(document).ready(function(){          display_preferred_server_location("us");          var left= ($(".plans-columns-wrp").width()/2 )-($(".server_loc_tabs").width()/2);          $(".server_loc_tabs").css('left', left + 'px');            $(".server_loc_tabs li").click( function(){              $(".server_loc_tabs li").removeclass('sel');              $(this).addclass('sel');              $('.sel_tab').remove();              $(this).append("<div class='sel_tab'></div>");              $('#plans-container input[type=radio]').removeattr("checked");          })            $('.country_specific_tabs li').each(function() {              add_event_to_tabs($(this).attr('country'));          });      });        function add_event_to_tabs(country){          $(".tab_" + country).click( function(){              var sel_tab_left=($(this).outerwidth()/2 );              $(".server_loc_tabs li .sel_tab").css('left', sel_tab_left + 'px');              var location = $(this).attr('country').tolowercase();              $('.plan-list').hide();              $('.' + location + '_plan').show();          })      }        function display_preferred_server_location(location){          $('.plan-list').hide();          $(".tab_" + location.touppercase()).addclass('sel').append("<div class='sel_tab'></div>");          $('.' + location + '_plan').show();          $('#' + location.touppercase() + '_plan_check').attr('checked', 'checked');      }  </script>  </div>  </div>  </div>  <?php  include("bottom.html");  ?>  </body>  </html>

then notice appear in site.

<!--a design w3layouts  author: w3layout  author url: http://w3layouts.com  license: creative commons attribution 3.0 unported  license url: http://creativecommons.org/licenses/by/3.0/  -->  <!doctype html>    <html>  <head>  <title>free web-hosting website template | login :: w3layouts</title>  <meta http-equiv="content-type" content="text/html; charset=utf-8" />  <link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>  <script type="text/javascript" src="js/jquery.js"></script>	  </head>  <body>  <?php  include("check.php");  ?>  <div class="bulk-domain">  	<div class="content">  		<div class="wrap">  		 	<div class="login_form">  		   	<div class="login_form_left">    		   	  <h3>sign in make booking!</h3>   		   		<form method="post" action="loginproc.php">  		    <table>  		    <tbody><tr><td><div><label>username <span class="astrix">*</span></label><input type="text" value="" name="username" id="username"></div>  		    <div><label>password <span class="astrix">*</span></label><input type="password" value=""name="password" id="password"></div></td></tr>  		    <tr><td><label style="display:inline">remember me</label><input type="checkbox" value=""></td><td><span><a href="#">forgot password ?</a></span></td></tr>  		      <tr><td><input name="checkout" type="submit" class="uibutton" value="sign in"></td></tr>  		    </tbody></table>     		    </form>  		   </div>  		   <div class="login_form_right">  		   	<h3>don't have account?</h3>  		  <div><a href="create-account.php"><button type="submit" name="submit" class="uibutton" id="new_submit">create account in 5 minutes</button></a></div>  		   </div>  		 <div class="clear"></div>  		   </div>   </div>   </div>  </div>  <?php  include("bottom.html");  ?>  </body>  </html>

replace session_start() following check:

if (session_status() == php_session_none) {     session_start(); } 

Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -