Welcome Guest, Not a member yet? Register   Sign In
form_radio in a loop

form_radio('feat',$prods->id,($prods->feat == 1) ? TRUE : FALSE)

this code is inside a loop (foreach).. why is it that the TRUE/FALSE values isn't getting the checked element? the radio button doesn't have a checked element in its attributes.

SOLVED: just put the form_open() and it worked. don't know how/why...

Theme © iAndrew 2016 - Forum software by © MyBB