Welcome Guest, Not a member yet? Register   Sign In
Unable to throw my hidden input to Controller
#4

[eluser]boltsabre[/eluser]
Yeah, I'd imagine it's got to do with putting an input field (in your case the hidden one) inside an anchor tag. Your <a> tag is all over the place, it has no href=""..., it has not 'link text' between the opening and closing <a> tags....

I'm guessing your trying to pass the $item->data_id as an identifier so when the user clicks on the link some action happens, but only for that particular $data_id..??? You'll have to append/concatenate this variable to your href attribute and then in your controller extract it using $this->uri->segment(whatever segment your $data_id is). Or make a new form inside your foreach loop for each item, and use a hidden field to populate this value... I think you may be trying to combine both methods together, and that's where your getting into trouble.


Messages In This Thread
Unable to throw my hidden input to Controller - by El Forum - 08-10-2011, 01:45 AM
Unable to throw my hidden input to Controller - by El Forum - 08-10-2011, 02:26 AM
Unable to throw my hidden input to Controller - by El Forum - 08-10-2011, 02:38 AM
Unable to throw my hidden input to Controller - by El Forum - 08-10-2011, 06:59 AM
Unable to throw my hidden input to Controller - by El Forum - 08-10-2011, 08:27 AM
Unable to throw my hidden input to Controller - by El Forum - 08-10-2011, 08:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB