Welcome Guest, Not a member yet? Register   Sign In
Example for form_open() in php
#2

[eluser]psp83[/eluser]
Hi Joviac.

Here's how you use the form_open().

Code:
<?php

// load the form helper so you can use set_value, form_open etc
$this->load->helper('form');

echo form_open('location/to/sumbit/to');

echo "Username : ". form_input('username', set_value('username'));
echo "Password : ". form_password('password', set_value('password'));
echo form_submit('submit', 'Login');

echo form_close();

?>

The above form is just a basic form, you can read more about the form helper here : http://ellislab.com/codeigniter/user-gui...elper.html

Hope the above helps you.


Messages In This Thread
Example for form_open() in php - by El Forum - 07-02-2010, 11:25 PM
Example for form_open() in php - by El Forum - 07-03-2010, 03:45 AM
Example for form_open() in php - by El Forum - 07-06-2010, 09:01 AM
Example for form_open() in php - by El Forum - 07-06-2010, 10:22 AM
Example for form_open() in php - by El Forum - 07-15-2012, 08:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB