Content management system
Posted: Thu Nov 17, 2005 12:15 pm
Hi,
I have to post news articles on a website every couple of days. I use a html page as a template and simply cut and paste the textual paragraphs into the html and then save the page as a different name.
I'd ideally like to use php to automate this process. I have a test script working, I provide the user with an input screen and via a form I post this data (such as article title, sub heading, paragraph1, paragrap2 etc,.) to the template page.
Now on the template page I can echo the relevant variables to the screen so that on screen the process works, but my question is........ will it be possible to save the template file as say "newsarticle_2" with the form data variables as hardcoded text.
Therefore each time an article is submitted a new page is created and saved.
Any ideas, if so how do I do this.
Thanks,
Rob.
I have to post news articles on a website every couple of days. I use a html page as a template and simply cut and paste the textual paragraphs into the html and then save the page as a different name.
I'd ideally like to use php to automate this process. I have a test script working, I provide the user with an input screen and via a form I post this data (such as article title, sub heading, paragraph1, paragrap2 etc,.) to the template page.
Now on the template page I can echo the relevant variables to the screen so that on screen the process works, but my question is........ will it be possible to save the template file as say "newsarticle_2" with the form data variables as hardcoded text.
Therefore each time an article is submitted a new page is created and saved.
Any ideas, if so how do I do this.
Thanks,
Rob.