edpozek Posted December 21, 2006 Share Posted December 21, 2006 I was to make a basic CMS for a site I am creating. I want the client to be able to update the simple site using a HTML form. Im using the $page=news.txt variable to call my .txt files which in turn is my content for the pages. What I am looking for is a way to use a drop down menu on the form to selct the different .txt pages (news.txt, home.txt, reports.txt) to populate with the title and content areas on the form. This form would have to add an <h1></h1> to the title area and a <p></p> for the content area. Basically a form that dumps into multiple .txt files so he can update it just by navigating to his form.html file on the server. Link to comment https://forums.phpfreaks.com/topic/31540-html-form-to-populate-some-txt-files/ Share on other sites More sharing options...
trq Posted December 21, 2006 Share Posted December 21, 2006 And your code and problem is? Link to comment https://forums.phpfreaks.com/topic/31540-html-form-to-populate-some-txt-files/#findComment-146147 Share on other sites More sharing options...
edpozek Posted December 21, 2006 Author Share Posted December 21, 2006 Sorry i guess i left that part out, I don't haver any code yet because all of my experience is in sending an email via my php file on my server with a form. I basically just trying to be pointed in a direction on how I can accomplish this maybe a tutorial or someone who I can stay in contact with while i teach myself. Link to comment https://forums.phpfreaks.com/topic/31540-html-form-to-populate-some-txt-files/#findComment-146151 Share on other sites More sharing options...
trq Posted December 22, 2006 Share Posted December 22, 2006 Im not sure your going to find any specific tutorials on the subject but I suppose you should probably start by learning to read filenames from directories allong with file manipulation with php.[url=http://hudzilla.org/phpwiki/index.php?title=Working_with_files]This[/url] might get you started, and you can always come back when you get stuck with a specific question. Link to comment https://forums.phpfreaks.com/topic/31540-html-form-to-populate-some-txt-files/#findComment-146155 Share on other sites More sharing options...
chronister Posted December 22, 2006 Share Posted December 22, 2006 Thanks Thorpe, I bookmarked that myselfedpozek,try checking out the php manual for filesystems[url=http://us3.php.net/manual/en/ref.filesystem.php]http://us3.php.net/manual/en/ref.filesystem.php[/url]Take a look at the table of contents toward the bottom to find specific functions for working with filesystems.Nate Link to comment https://forums.phpfreaks.com/topic/31540-html-form-to-populate-some-txt-files/#findComment-146171 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.