Hello, I want to print a letter from a html page. But within the letter, I want it to contain the name of each student on the database. It is the same letter but I want to print/download it having each student's unique name.
Ebroxy
0
Newbie Poster
Recommended Answers
Jump to PostYou just have a placeholder. BUT how is you letter stored - is it in a plain text file, a DB record or in a php variable or as plain html?
Does it contain preformatting as in hard breaks?
Do you want to be able to download multiple letters at …
Jump to PostOK, pretty much like a mailmerge then from your description.
You can use a placeholder:
<p>Dear **NAME**,</p> <p>Blah blah blah</p>
I'm assuming this letter has a .html extension.
You can get the content of the html file and place it into a variable:
All 5 Replies
Reply to this topic
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.