[eluser]CroNiX[/eluser]
I can see this causing an error if the form hadn't been submitted yet:
Code:
<?php echo set_value('lastname',$this->input->post('email_address')); ?>
Code:
set_value($field_name, $default_value);
You are setting the $default_value to a POST value, which won't be available until the form has been submitted so that is probably causing an error on initial page load. Are you not displaying errors?
$default_value is what the value should be when the page first loads, or leave it off to be an empty string.
Also, it seems you are mixing the 'lastname' and 'email_address' fields there. When it first loads you are saying you want it to be the email_address value, and then if they submit it you are saying it should be the lastname field value.