First of all - thanks so much for chronoforms! Saved me a huge amount of coding time.
I have a question about repopulating a form. I have a membership registration form that users fill in all sorts of details including being able to upload a photo. This works great and I can see all the data. I then wanted to repopulate the form so when a user wants to modify the data they don't have to type it all in again. Again got it all working lovely except the uploaded image. I can obviously get the filename from the database and I tried (in my form html)
<?php
$value = "";
if ($data == 1)
{
$value = "value=\"" . $row->fileupload. "\"";
}
echo "
<input class=\"cf_inputbox\" maxlength=\"250\" size=\"50\" name=\"fileupload\" type=\"file\" $value/>
";
?>
where $data says if there is some data already stored in the DB for that user.
This didn't work and I searched the net and came back with the answer - you can't do it this way.
So my question is, any ideas how I could do this within my chronoform such that when the user submits their updated data it keeps the previous file upload if no new one is entered?
Thanks