I'm trying to create a set of scripts that will 1. enable me to add text to a file, and 2) read the text stored in that file and display it on a page. I've been having a horrible time trying to get it to work.
I want the user of the first script (add.php) to be able to select a picture (with radio buttons) enter some text and click "OK". the script will then sort out the user's input like so:
icon1
Saturday, September 13, 2003, 8:39 PM
Username
This is some text that I, the user, have written.
The next script (read.php) will take those 4 lines and put them into 4 variables: $icon, $adddate, $handle, $text then write the necessary HTML around the four variables.
In addition, I want the read.php script to only display the first "n" entries and be able to start at the "n"th entry as specified by the user.
I've tried several different approaches to this, each time hitting a some brick wall or another. Can anyone give a push in the right direction, a link, an idea to follow, anything?
Greatly appreciated,