weird problem with form helper - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: weird problem with form helper (/showthread.php?tid=10134) |
weird problem with form helper - El Forum - 07-20-2008 [eluser]Bramme[/eluser] Hi all, I've got a weird problem with the form helper. I'm setting an array in my controller, which I use to build my form. Code: $data['form'] = array( Code: <?=form_open($this->uri->uri_string().'#comments'),"\n"?> However, the weird thing is, in my source code, I suddenly see this: Code: <input type="hidden" name="name" value="tutID" /><input type="hidden" name="value" value="192" /> weird problem with form helper - El Forum - 07-20-2008 [eluser]Randy Casburn[/eluser] <?=form_hidden($form['hidden']), "\n"?> the form_hidden() function does not take an array as an argument -- check the docs That's a start.. Randy weird problem with form helper - El Forum - 07-20-2008 [eluser]Bramme[/eluser] I always check the docs, I just didn't think of the fact it wouldn't take array's, just like all the other form_ helpers. edit, thanks though. problem solved now. weird problem with form helper - El Forum - 07-20-2008 [eluser]Randy Casburn[/eluser] I just meant "verify what I'm saying because this is off the top of my head and sometimes I'm a fool". -- Didn't mean to come off as offensive - :red: Randy weird problem with form helper - El Forum - 07-20-2008 [eluser]Bramme[/eluser] No worries no worries. I'm not offended and didn't want to appear though. I was merely making excuses for myself why I didn't properly check the docs :p That's the downside of internet communication... Without emoticons, we'd be lost. |