[eluser]elmne[/eluser]
I want codecharge to display output in a form using values that come from a database.
So the form field is populated using a database value
Code:
<input type="text" name="customer_type_id" value"<?php echo $row->customer_type ?>" />
and also so that when a mistake is done and the form is reloaded after validate, it shows the value that was input i believe using the set_value function below
Code:
<?php echo set_value('customer_type'); ?>
How do i achieve the ability to display database output within a form field and also to repopulate that same field upon submission, should validation trigger the form to be reloaded?