<input type="hidden" id="baseurl" value="<?php echo base_url(); ?>" >

<div class="row">
    <div class="col-md-6 margin-bottom-30">
        <div class="hs_heading medium">
            <h3>Update User</h3>
        </div>
        <div class="hs_input">
            <label>Full Name</label>
            <input type="text" class="form-control" placeholder="Name" id="user_name" name="user_name" value="<?php if(!empty($userdeatils)){ echo $userdeatils[0]->user_name; } ?> " disabled>
        </div>
		 <div class="hs_input">
            <label>Email address</label>
            <input type="email" class="form-control" placeholder="Email" id="user_email" name="user_email" value="<?php if(!empty($userdeatils)){ echo $userdeatils[0]->user_email; } ?>" disabled>
        </div>
		<div class="hs_input">
            <label>Phone</label>
            <input type="text" class="form-control" placeholder="Phone" id="user_mobile" name="user_mobile" value="<?php if(!empty($userdeatils)){ echo $userdeatils[0]->user_mobile; } ?>">
        </div>
        <div class="hs_input">
            <label>Address</label>
            <textarea rows="4" class="form-control" placeholder="Address"id="user_address" name="user_address"><?php if(!empty($userdeatils)){ echo $userdeatils[0]->user_address; } ?></textarea>
        </div>
        <input id="user_id" type="hidden" name="user_id" value="<?php if(!empty($userdeatils)){ echo $userdeatils[0]->user_id; } ?>" > 
        <button type="submit" class="btn" onclick="update_user()">Update</button>
    </div>
</div>

 