Welcome Guest, Not a member yet? Register   Sign In
Radio button
#1

[eluser]Crnaovca[/eluser]
I have created form, connected to DB, it works ok, it saves data BUT, if there is error in validation and error msg appeares, all radio buttons status are deleted. How to save them?

This is annoying, user click, gets error msg and after that radio buttons must be clicked again.
#2

[eluser]Crnaovca[/eluser]
I got it ...
That is when looking at manual too literal ...

Problem was in this line

<input id="vrsta" name="vrsta" type="radio" class="" value="Meso" <?php echo $this->form_validation->set_radio('vrsta', 'option1'); ?> />

and it should be

<input id="vrsta" name="vrsta" type="radio" class="" value="Meso" <?php echo $this->form_validation->set_radio('vrsta', 'Meso'); ?> />
#3

[eluser]rogerwaldrup[/eluser]
Looks like you got it.




Theme © iAndrew 2016 - Forum software by © MyBB