Dear all,
I start my experience with Chronoforms and want to fix the following:
I generate a form where I can add some parameters (firstname, lastname, address, comment) and
upload a file (jpg) to the server. For uploading there is a function "files upload" available.
There I can define the name of the uploaded file:
How I can add here more from my added parameters? I want to add between Ymd and filename the
firstname and lastname of the person who has upload the file.
An other idea is to add in addition to the JPG a TXT-File with same name (other extension) to the
folder.
Hope someone can help
Best regards
Michael
I start my experience with Chronoforms and want to fix the following:
I generate a form where I can add some parameters (firstname, lastname, address, comment) and
upload a file (jpg) to the server. For uploading there is a function "files upload" available.
There I can define the name of the uploaded file:
<?php return date("Ymd")."_".$file_name; ?>
How I can add here more from my added parameters? I want to add between Ymd and filename the
firstname and lastname of the person who has upload the file.
An other idea is to add in addition to the JPG a TXT-File with same name (other extension) to the
folder.
Hope someone can help
Best regards
Michael
Hi Michael,
The form data is available in the $form->data array - if you add a Debugger action temporarily you can see the contents. You can include this data using $form->data['input_name'] - for example
Bob
The form data is available in the $form->data array - if you add a Debugger action temporarily you can see the contents. You can include this data using $form->data['input_name'] - for example
<?php return date("Ymd")."_".$form->data['first_name']."_".$form->data['last_name']."_".$file_name; ?>
Bob
This topic is locked and no more replies can be posted.