<form action="<?php echo base_url();?>home/buynow" method="post">
<div class="form-group col-md-6">

                        	<label>Asset</label>

                            <select name="metal" class="form-control" required id="metal_select">
					
                            	<option value="">Select Asset</option>
                                
                                <?php $this->db->select("*");
					$this->db->from("metals");
					$this->db->join("user_assets","user_assets.asset_type=metals.metal");
					$this->db->where("user_assets.uid",$this->session->userdata("user"));
					$metals=$this->db->get()->result();
					foreach($metals as $d){?>
                    <option value="<?php echo $d->metal.'-'.$d->lots;?>"><?php echo $d->metal;?></option>
                    <?php }?>

                                

                            </select>

                            <input type="hidden" name="cur_rate" id="cur_rate" value="" class="" />

                        </div>
<button type="submit" class="btn btn-danger">Submit</button>
</form>