Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Had written a code as follw in view.php file for select ,




HTML
select name="bloodgroup"    id="mem_religion"   >
        <option value="">- Select Bloodgroup -</option>
        <?php  
         foreach ($bloodgroups as $bloodgroup){ 
             
            
             
             ?>
         <option value="Option"> <?php echo $bloodgroup->bloodgroupname;  ?> 
                                      <?php   } ?></option> 
      </select>





which displays me the correct result,however i wll get the selectedvalue in controller.php file?
Posted
Comments
ChauhanAjay 9-Sep-15 1:35am    
try the below link
http://stackoverflow.com/questions/16087560/codeigniter-grab-value-from-dropdown-pass-to-controller

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900