
How do I create new html webpages through a php script?
On my website, A user enters information for a product, and that information is sent to my database. I want to also create a page for that product that other people can then view. I’m assuming creation of the file would happen in the PHP script before sending the information, so that the link to the page can also be sent to the server.
You have to write a small CMS.
Your form will contain many details of the product, some images that the user can upload, and other details.
Your “CMS” will allow the user to set-up his own “page”, made of pieces of code you store in your db.
In the end, you only have ONE “product” page: you get the info from the DB, the images from another folder, then build your page in Php and send it!
Start making a “template” on how the product page should look: this will guide you to collect the correct details/images for your submission.
If you have very different products, make a few templates.
When the user wants to upload his product, make him choose the template first, then collect the data.
PHP help desk customer service support software. Knowledge base. Ticketing