[eluser]vincej[/eluser]
Hi
The user guide for Validation offes an example of how ti use the set_value function, however, employs a different syntax from the normal CI form syntax. It uses:
Code:
<h5>Username</h5>
<input type="text" name="username" value="<?php echo set_value('username'); ?>" size="50" />
I want to use :
Code:
echo "<p><label for='firstname'>First Name</label><br/>";
$data = array('name'=>'Firstname','id'=>'Firstname','size'=>45);
echo (form_input($data )) ."</p>";
I have tried splicing in the set_value function, but I can not get my value eg First Name to appear int he actual text box - it always wants to appear above or below the text box.
What am I doign wrong ??
Many Many thanks !!