<section id="bookedroom"><legend><label id="min_label"><i>House/room renting contract for <?php echo $ro['hname'];?></i></label></legend>
 <table>

     <form id ="booking_form" action="" method="POST">

 <tr>
 	<td colspan="2">

 	  <i>Room:-</i>
 	  
 	  <?php echo $rum['rname'];?>
 	 	
 	</td>

 </tr>
 
 <tr>
 <td colspan="2">

 	 <i>One night cost:-</i> 

  

 <?php echo $rum['rcost'];?>
 	
 </td>

 </tr>


<tr>

<td valign="top">

     <i>Contract lasting date:</i><sup>*</sup></label><br><sup id="cf"></sup>

</td>

  


</tr>    


<tr>
 

        <td>

  
            <input type="date" name="expireD" id="expireD" class="prof_info" value="<?php echo $expireD;?>" /><br/>
        
        </td>
    
</tr>

    

                                                                <!---USERS PASSWORD-->
  

 



<!---- lllllljjjjjjjjjjjjjjjj-->

 
 
 	<tr>
<!--
CARRY SOME INFO

-->

             <input class="hi" type="text" name="owniD"  value="<?php echo $ownID;?>">

             <input type="text" value="<?php echo $roomid;?>" name="roomNo" class="hi">

             <input type="text" value="<?php echo $house_no;?>" name="house_no" class="hi"> 


 
 


   </tr>    

 
  
 
   


<!--- MMMMMMMMMMMMM  -->


<tr id="">
   <td colspan="2" align="center" id="reg_form_table_cell"> 

        <input type="submit"  name="post" value="Book" id="book"/>
   </td>

  </tr>

 </table>
 
</form>
 </table>

</section>
 
 
<script type="text/javascript">
$("#booking_form").on('submit',function(e){
 
 
 var expireD=document.getElementById('expireD').value;

    
    

////////////////// 
 

///////////////////////////////   DATE ARRIVED ////////////////////
                         ////////////////////////////

if(expireD==""){
 e.preventDefault();

  document.getElementById('on').innerHTML="Lasting date required!..";

 }
 else
 {
 
   document.getElementById('on').innerHTML="";

  }
    
 
 

     ////////////mmm
  
}
);
   
</script>
