Open & Search a .txt file
Posted: Wed Jul 29, 2009 9:11 pm
I am working on making a CMS for my personal site for easier editing. I have a flash banner/menu that can be edited with a text file (contents posted below) and I want to beable to edit the text file from the CMS.
I know how to rewrite the file, but I am having a hard time getting the variables not to be shown.
If someone wants to write the whole script, I thank you very much!!
but pointing me to the right function might be good enough
I want to make the page for editing the file in a form with a text field for each line. Inside the text field i want what is already declared for the variables, but not the variables show (layout example: Menu Item 1: [TEXT FIELD WITH "Menu Item 1"] \n Menu Item 2: [TEXT FIELD WITH "Menu Item 2"])
&name=TITLE 1
&name2=TITLE 2
&name3=TITLE 3
&button1=MENU ITEM 1
&button2=MENU ITEM 2
&button3=MENU ITEM 3
&button4=MENU ITEM 4
&rep=replay
&url1=MENU ITEM 1 LINK
&url2=MENU ITEM 2 LINK
&url3=MENU ITEM 3 LINK
&url4=MENU ITEM 4 LINK
&iurl1=ICON 1 LINK
&iurl2=ICON 2 LINK
&iurl3=ICON 3 LINK
&enddata=1
I know how to rewrite the file, but I am having a hard time getting the variables not to be shown.
If someone wants to write the whole script, I thank you very much!!