<form method="post" enctype="multipart/form-data">
	<div class="row">
		<div class="col-sm-6 col-md-6">
			<div class="form-group">
				<label>Voucher ID :</label>
				<select name="vocher_id" class="form-control custom-select2" id="vocher_id" >
                  <option value="">Select Voucher Id :</option>  
                   	<?php
                      $voucher=mysqli_query($connect,"select * from tbl_voucher_details where fld_voucher_details_delete='0' order by fld_voucher_details_id desc") or die(mysqli_error($connect));
                      while ($fetch=mysqli_fetch_array($voucher)) {
                      	 extract($fetch);

                        if (isset($_POST['submit']))
                         { ?>
                         <option value="<?php echo $fetch['fld_voucher_id'];?>" <?php if ($fetch['fld_voucher_id']==$_POST['vocher_id']){echo "selected";} ?>><?php echo $fetch['fld_voucher_id'];?></option>
                       <?php } 
                       else { ?> 
                    
                    <option value="<?php echo $fetch['fld_voucher_id']; ?>"><?php echo $fetch['fld_voucher_id']; ?></option>
                  <?php } }?>      
                </select>
			</div>
		</div>
		<div class="col-sm-6 col-md-6">
			<div class="form-group">
				<label>Voucher Category :</label>
				<select name="voucher_category" class="form-control custom-select2" id="voucher_category" >
                  <option value="">Select Voucher Category :</option>  
                   	<?php
                      $bank=mysqli_query($connect,"select * from tbl_voucher_category where fld_voucher_category_delete='0' order by fld_voucher_category_id desc") or die(mysqli_error($connect));
                      while ($fetch1=mysqli_fetch_array($bank)) {
                      	extract($fetch1);

                        if (isset($_POST['submit']))
                         { ?>
                         <option value="<?php echo $fetch1['fld_voucher_category_id'];?>" <?php if ($fetch1['fld_voucher_category_id']==$_POST['voucher_category']){echo "selected";} ?>><?php echo $fetch1['fld_voucher_category'];?></option>
                       <?php } 
                       else {  ?>
                    <option value="<?php echo $fetch1['fld_voucher_category_id']; ?>"><?php echo $fetch1['fld_voucher_category']; ?></option>
                  <?php } }?>            
                </select>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-6 col-md-6">
			<div class="form-group">
				<label>Voucher Date :</label>
				<?php if(isset($_POST['submit']))
				{ ?>
					<input class="form-control datetimepicker-range" placeholder="Select Date" type="text" name="date_range" value="<?php echo $_POST['date_range'];?>" >

				<?php } else{ ?>	
					<input class="form-control datetimepicker-range" placeholder="Select Date" type="text" name="date_range" >

				<?php } ?>
			</div>
		</div>
	</div>						

    <div class="form-group row">				            
        <div class="col-sm-12 col-md-12">			              	
      		<center>
      			<input class="btn btn-success" value="Submit" type="submit" name="submit">
        		<input class="btn btn-danger" value="Reset" type="reset" name="cancle">
        	</center>
      	</div>
    </div>

</form>

