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

[eluser]Wondering Coder[/eluser]
hi guys,

I'm having a bit problem here. It seem I can't throw my hidden input to my controller. It return blank T_T.

this is my view
Code:
<?php
        foreach($users->result() as $item){
            echo "<tr><td>&nbsp;&nbsp;".$item->username."</td>
                      <td><a href=''>".$item->fullname."</a></td>
                      <td>".$item->data_display."</td>
                      <td align='center'>
                      <a >user_id."' class='";
                      if($item->display==1) {
                            echo "approve";
                      }else
                            echo "pending";
            echo "'>&lt;input type='hidden' name='role' value='".$item-&gt;data_id."'/></a></td>
                      <td><a href='' class='edit'></a></td>
                      <td align='center'><a href='' class='del'></a></td></tr>";
        }
        ?&gt;
my controller
Code:
$item = $this->uri->segment(3);
        $role = $this->input->post('role');
$query = $this->main->getAllUser_clause($item,$role)->row();

and this is the output of my query
Code:
SELECT user_id, a.data_id, fullname, username, pps_c.data_display, a.display,fname,mname,lname FROM (SELECT ad_userid user_id, ad_dataid data_id,concat_ws(' ',fname,mname,lname) as fullname, ad_username username, display,fname,mname,lname FROM pps_admin_users UNION SELECT user_id, data_id,concat_ws(' ',fname,mname,lname) as fullname, username, display,fname,mname,lname FROM pps_users) a LEFT JOIN pps_dataset pps_c ON a.data_id=pps_c.data_id WHERE user_id = 12 AND data_id = ORDER BY a.data_id ASC

As you can see my data_id = '' //blank.

Can anyone help me with this..


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