Welcome Guest, Not a member yet? Register   Sign In
Need Help With Validation & Set Value
#1

[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>
&lt;input type="text" name="username" value="&lt;?php echo set_value('username'); ?&gt;" size="50" /&gt;

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 !!




Theme © iAndrew 2016 - Forum software by © MyBB