Hi All

I would appreciate some advice on where to start with this daunting task i have. Please also bear with me as i am fairly new to PHP.

I’ve created an online form for my clients to complete in order to get a quote. The only thing I can get this form to do so far is to email the captured data to an email address.

What I would like to achieve is the following:
1: Save the data captured by the client onto my database
2: then get php to recall that data and replace it with fields in a word .docx template I’ve created
3: Finally php must convert the created docx into a PDF doc which the client immediately get once they’ve clicked on the form’s “Get quote” button.

Member Avatar for diafol

Producing a docx file is a bit of a fiddle, however, creating PDF from data is straightforward with packages like tcpdf

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.