Question: how to make fdf file?
Answer: Use Adobe Acrobat to export forms data directly to a file.
Use a Submit Form action in Acrobat's Field Properties pop-up to export FDF data to a web server.
Export data from a database and save it as an FDF file, using a script that you create.