Welcome Guest, Not a member yet? Register   Sign In
need example form repopulation with session data
#2

[eluser]jozeunico[/eluser]
Look at the form validation class for re-populating the form

Code:
<html>
<head>
<title>My Form</title>
</head>
<body>

<?php echo validation_errors(); ?>

<?php echo form_open('form'); ?>

<h5>Username</h5>
&lt;input type="text" name="username" value="&lt;?php echo set_value('username'); ?&gt;" size="50" /&gt;

<h5>Password</h5>
&lt;input type="text" name="password" value="&lt;?php echo set_value('password'); ?&gt;" size="50" /&gt;

<h5>Password Confirm</h5>
&lt;input type="text" name="passconf" value="&lt;?php echo set_value('passconf'); ?&gt;" size="50" /&gt;

<h5>Email Address</h5>
&lt;input type="text" name="email" value="&lt;?php echo set_value('email'); ?&gt;" size="50" /&gt;

<div>&lt;input type="submit" value="Submit" /&gt;&lt;/div>

&lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;


Messages In This Thread
need example form repopulation with session data - by El Forum - 02-04-2009, 08:09 AM
need example form repopulation with session data - by El Forum - 02-04-2009, 12:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB