It depends. If you need back end automation, you would need more than FrameMaker to connect a web form to a FrameMaker document. If you had your web server take the information and output an XML file with the required information, you could have a FrameMaker script that would ingest the information and make a fully-formatted document. But it would pretty much be a manual process where you would launch FrameMaker and run a script to import and format the data.
If you want something more dynamic that would interact with a client and produce immediate output, you should explore an InDesign solution. There are some InDesign Server solutions designed to allow users to design things with a web interface (for example, greeting cards, etc.) and then InDesign Server runs in the background to produce PDF output that is returned to the user. See https://www.siliconpublishing.com.
If you are looking for a FrameMaker solution like I described, feel free to contact me offlist. Thank you. rick at frameexpert dot com