How to realize the Web Page Preview function by PHP

premise: to generate a landing page according to a template, DB stores only the pictures or text information to be replaced.

< hr >
  1. to make an online landing page creation tool, how to realize the preview function after the H5 page is finished, similar to Wechat"s article preview function?
  2. how to publish a landing page;
Mar.10,2021

can be saved as a draft first, access with parameters such as preview=1, and access draft data to preview, but online draft data will not be displayed.

of course, add the corresponding unique id. If id is afraid of being guessed, for example, with increasing numbers, it can be replaced with encrypted strings, so it is not easy to be accessed by guesses.

for reference.

Menu