<div id="updateaccount<?php echo $id ?>" class="modal fade"  tabindex="-1" role="form" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> Cancel &times;</button>
                <h4  class="modal-title" id="myModalLabel">Topup <b><?php echo $fname." ".$lname ?>  </b> Account </h4> 	 
            </div>
			<form name="form1" data-parsley-validate class="form-horizontal form-label-left" method="post" action="" onsubmit="return validate()" >
				<div class="modal-body">
				 <input style="display:none;" type="text" name="rid" id="rid" value="<?php echo $id; ?> "/>
				
						<div class="form-group">
							<label class="control-label col-md-6 col-sm-6 col-xs-6" for="first-name">Amount To Topup (Ksh) <span class="required"> </span>
							</label>
								<div class="col-md-3 col-sm-3 col-xs-3">
							<input type="text" id="amnt" name="amnt" required="required" class="form-control col-md-3 col-xs-3" value="<?php $mnt=$rws['amount_requested']; echo $mnt ?>">
								</div>
						</div>
					  
				</div>
            <div class="modal-footer">
			 <input type="submit" class="btn btn-info" value="Update" name="submit" id="submit"/>
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
			</form>
        </div>
    </div>
</div>

<?php 
   if(isset($_POST['submit'])){
	   $id = $_POST['rid'];
	   $tpamnt =  $_POST['amnt'];
	    
		$query=mysql_query("update airtime_topup_requests set amount_awarded='500' and date_awarded=Now() where request_id='$id' ");
	
     }



?>