Welcome Guest, Not a member yet? Register   Sign In
Help me please
#1

[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>
      &lt;input type="text" name="Name" id="Name" /&gt;&lt;/th>
    </tr>
    <tr>
      <th scope="row">Lastname
        <label for="LastName"></label>
      &lt;input type="text" name="LastName" id="LastName" /&gt;&lt;/th>
    </tr>
    <tr>
      <th scope="row">E-mail
        <label for="Mail"></label>
      &lt;input type="text" name="Mail" id="Mail" /&gt;&lt;/th>
    </tr>
    <tr>
      <th scope="row">Phone
        <label for="Phone"></label>
      &lt;input type="text" name="Phone" id="Phone" /&gt;&lt;/th>
    </tr>
    <tr>
      <th scope="row">Country
        <label for="Country"></label>
      &lt;input type="text" name="Country" id="Country" /&gt;&lt;/th>
    </tr>
    <tr>
      <th height="38" scope="row">&lt;input type="submit" name="Submit" id="Submit" value="Submit" /&gt;&lt;/th>
    </tr>
  </table>
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;




Theme © iAndrew 2016 - Forum software by © MyBB