[eluser]Unknown[/eluser]
If you are still struggling with set_value() to repopulate form values.
Just use traditional php way of doing :
e.g
<input type='text' name='firstname' value="<?php echo set_value('firstname'); ?>" />
replace with ---
<input type='text' name='firstname' value="<?php echo (isset($_REQUEST['firstname'])) ? $_REQUEST['firstname'] : ''; ?>" />
and bingo it works like charm...