[eluser]Unknown[/eluser]
I'm beginner. i don't know how to get data from View Form to Controller. in user guide, There is just example sent data from Controller to View Form.
My Controller
Code:
<?php
class Con_Regis extends CI_Controller
{
function index()
{
$this->load->view('register_form');
}
}
?>
Thank You
My View Form
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620" />
<title>RegisterForm</title>
</head>
<body>
<form id="form1" name="form1" method="post" action=".">
<table width="279" height="243" border="1">
<tr>
<th scope="col">แบบสมัครงาน</th>
</tr>
<tr>
<th scope="row">Fristname
<label for="Name"></label>
<input type="text" name="Name" id="Name" /></th>
</tr>
<tr>
<th scope="row">Lastname
<label for="LastName"></label>
<input type="text" name="LastName" id="LastName" /></th>
</tr>
<tr>
<th scope="row">E-mail
<label for="Mail"></label>
<input type="text" name="Mail" id="Mail" /></th>
</tr>
<tr>
<th scope="row">Phone
<label for="Phone"></label>
<input type="text" name="Phone" id="Phone" /></th>
</tr>
<tr>
<th scope="row">Country
<label for="Country"></label>
<input type="text" name="Country" id="Country" /></th>
</tr>
<tr>
<th height="38" scope="row"><input type="submit" name="Submit" id="Submit" value="Submit" /></th>
</tr>
</table>
</form>
</body>
</html>