Automated creation of new webpages
How would I set up a website that creates a new webpage based on form information, similiar to posting an ad on craigslist, or a new post on reddit? I am struggling to find information on it on google, is there any specific terms to use?
7/10/2018 1:16:01 AMRobby Wade
6 AnswersNew Answer
Corresponding to my previous reply, here it is. https://code.sololearn.com/Wh8Ltu24DJum/?ref=app
I'm also curious about this. I tried looking into it a while ago and came up with a few things that somewhat work. So yeah, I don't know but it might be worth researching these. You can use an XML request to open another file with all the formatting then dump it into .innerHTML or somehow parse it. Likewise, you could run a JS script to write all the formatting. Somehow this seems dodgey, though. Or you can use a server-side language to build the webpage, like php or node.js. Someone told me there is a php command called 'include' that works.
Thank you all, I was just able to find some information on it as well, I am going to start learning php soon then.
this can be done by a CMS (content management system). it automatically generates new elements to a page or new pages to a site. in other words, the CMS generates the html/css structure and passes on the data to the database. most CMS also handle login of users and creation of accounts. some php CMS: wordpress, kirby, joomla... in js/node: keystone (dead project), strapi, enduro, butter...