Welcome Guest, Not a member yet? Register   Sign In
XHTML Presentation of froms
#4

[eluser]Phil Sturgeon[/eluser]
Code:
$data['fields']['lastname'] = '<input type="text" value="Jones">';
$rules['lastname'] = 'required|xss_clean;

$data['fields']['address'] = '<input type="text" value="Mainstreet">';
$rules['address'] = 'required|xss_clean;

$this->validation->set_rules($rules);

$this->load->view("form", $data);

If you are interested in setting fields too, I reccomend you set a language file with the same keynames, then do a FOREACH to loop through the rules array_keys() and grab the lang from the file and chuck it in a $fields array.


Messages In This Thread
XHTML Presentation of froms - by El Forum - 02-08-2008, 05:29 AM
XHTML Presentation of froms - by El Forum - 02-08-2008, 06:22 AM
XHTML Presentation of froms - by El Forum - 02-08-2008, 06:27 AM
XHTML Presentation of froms - by El Forum - 02-08-2008, 06:44 AM
XHTML Presentation of froms - by El Forum - 02-08-2008, 06:48 AM
XHTML Presentation of froms - by El Forum - 02-08-2008, 06:52 AM
XHTML Presentation of froms - by El Forum - 02-08-2008, 07:02 AM
XHTML Presentation of froms - by El Forum - 02-11-2008, 12:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB