Welcome Guest, Not a member yet? Register   Sign In
Need help for form
#1

[eluser]huangxiao[/eluser]
Hi, this is my first time to post here in this forum,and this is the first time that i use the codeigniter framewrork,my problem is that, is it possible to have form elements in my views ?

example i have this myform_views.php and inside of this is like this.
Code:
<!DOCTYPE html>
&lt;html&gt;
  &lt;head&gt;&lt;/head>
&lt;body&gt;
   &lt;form method="post"&gt;
   <label>username</label>   &lt;input type="text" name="username" id="username"&gt;
   <label>password</label> &lt;input type="password" name="password" id="password"&gt;
    &lt;input type="submit" name="submit"  value="login"&gt;
  &lt;/form&gt;

&lt;/body&gt;

&lt;/html&gt;
please help me...

Thank you in advance
#2

[eluser]InsiteFX[/eluser]
You can use it, but you should take a look at the CodeIgniter form helper and form validation library.
#3

[eluser]huangxiao[/eluser]
Hi thank you for the quick reply...can i ask again how can i pass those values to the controller?..I apologize for asking this kind of question,but i am still newbie on this framework...


Thank you in advance.
#4

[eluser]InsiteFX[/eluser]
Code:
&lt;form name="myform" action="path_to_your_controller/method" method="post"&gt;

&lt;/form




Theme © iAndrew 2016 - Forum software by © MyBB