Welcome Guest, Not a member yet? Register   Sign In
1.7 Form validation
#4

[eluser]Thorpe Obazee[/eluser]
This is what I do to pre polulate the form field(it's in the user guide).

Code:
<input type="text" class="span-2" value="<?php echo set_value('username');?>" name="username" id="username" />


However, if you have something from the database, you might have something like this where $user->first_name is the default value(from the database)

Code:
<input type="text" value="<?php echo set_value('first_name', $user->first_name);?>" name="first_name" id="first_name" />


Messages In This Thread
1.7 Form validation - by El Forum - 11-29-2008, 07:34 PM
1.7 Form validation - by El Forum - 11-29-2008, 07:52 PM
1.7 Form validation - by El Forum - 11-29-2008, 08:11 PM
1.7 Form validation - by El Forum - 11-29-2008, 08:18 PM
1.7 Form validation - by El Forum - 11-29-2008, 08:56 PM
1.7 Form validation - by El Forum - 11-29-2008, 08:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB