Welcome Guest, Not a member yet? Register   Sign In
How to pass two variables form view to controller in mvc
#1

[eluser]rash[/eluser]
Hi all,

Can anyone tell me how can pass two variables from view part of a form to controller..
Look my view form is like ..

<table width="100%" border="0" cellpadding="2" cellspacing="1" class="display" id="example">
<thead>
<tr>
<th>Student Name</th>
<th>Book Name</th>
<th>Issue Date</th>
<th>Expiry Date</th>
<th>Time</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
&lt;?php
$slno=0;
foreach($this->issuelist as $key => $value) {
$slno++;
?&gt;
<tr>
<td>&lt;?php echo $value['student_name']; ?&gt;</td>
<td>&lt;?php echo $value['book_name']; ?&gt;</td>
<td>&lt;?php echo CovertDate($value['issue_dt']); ?&gt;</td>
<td>&lt;?php echo CovertDate($value['expiry_dt']); ?&gt;</td>
<td>&lt;?php echo $value['btime'];?&gt;</td>
<td><a href="&lt;?php echo URL;?&gt;library/edit_book_issue/&lt;?php echo $value['book_issue_id'];?&gt;">Edit</a></td>
<td><a href="&lt;?php echo URL;?&gt;library/delete_book_issue/&lt;?php echo $value['book_issue_id'];?&gt;">Delete</a></td>
</tr>
&lt;?php } ?&gt;
</tbody>
</table>

In the line where i wrote edit with a href i want to post another variable to cotroller, but i don't know how??
plz help me.


Messages In This Thread
How to pass two variables form view to controller in mvc - by El Forum - 03-16-2013, 04:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB