By gr8cms on
hello all,
I 'm creating a form same as Contact form and I added a file field on it.
The form is accessable for all. now, I want to save the form.
How must I do it?(in a table or ..)
Please give me a solution.
Thanks in davance
Comments
Use the
Use the yourform_form_submit() and inside it use the file_save_upload()
--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com
Thanks for your answer, I did
Thanks for your answer, I did it.
Now, I want to save the form information and the file location (URL) and then in the admin page show this information.
"The form page is accessible for all", now
Which one is correct :
1. Save this as a Node
2. Create a new table and save on it
Please help me every body
Thanks in advance
the correct answer depends on
the correct answer depends on what you need or goals.
If you save as a node then drupal can search on it, and you will be utilizing the drupal file table which makes life easier to integrate with other module or theming process.
If you save as a table, then it will be more secure because other people doesn't know where the file is located at or the table to look for the file url.
--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com
Thank U Sir It was useful for
Thank U Sir
It was useful for me