Welcome Guest, Not a member yet? Register   Sign In
How to Keep maintain Radio button and chekbox Values After submit in form
#1

How to keep maintain the values for radio buttons and checkbox , select tag values in registrer form in CI ...
My Code Is :





<tr><td>Address</td><td><?= form_textarea(array("name"=>"address","id"=>"address","value"=>set_value("address"),"rows"=>"8","cols"=>"22"))?></td><td id="error"><?= form_error("address") ?></td></tr>
<?php
$status = array("-1"=>"Select One",
                "Married"=>"Married",
               "Unmarried"=>"Unmarried",
"divorced"=>"Divorced")

?>




<tr><td>Marital Status</td><td ><?= form_dropdown("marital_status",$status,"-1",'style="width:175px;"') ?></td><td id="error"><?= form_error("marital_status") ?></td></tr>
<tr><td>Hobbies</td><td><?= form_checkbox("hobbies","Cricket") ?><span>Cricket</span>
                       <?= form_checkbox("hobbies","Chess")?><span>Chess</span>
                       <?= form_checkbox("hobbies","kabbadi")?><span>Kabbadi</span></td><td id="error"><?= form_error("hobbies")?></td></tr>

Attached Files Thumbnail(s)
       
Manikanta
Reply


Messages In This Thread
How to Keep maintain Radio button and chekbox Values After submit in form - by Chandini - 05-05-2015, 10:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB