bluemicrobyte
02-06-2006, 10:55 PM
So I also need a simple script that will contain the following 2 parts:
a simple html form with two fields - one for a url and one for a line of text. And a submit button. When submitted, it will add the URL and line of text to the top of a .txt file (or MySQL database if needed, but preferably .txt).
The second part is a php script that reads the text file with the data and outputs html code in the following format (or similar):
<a href="NEWEST URL" class="weblinks"> NEWEST LINE OF TEXT </a>
<br>
<a href="SECOND URL" class="weblinks"> SECOND LINE OF TEXT </a>
<br>
etc until X items have been listed - probably around 5
I'd also like another php file which lists every item in the log file for archival purposes.
The two parts are separate - the form is for me (and only me, don't worry about security issues) to add links to my webwatch box (http://www.microbyteproductions.com/home.php) on the home page. The second part is to display the latest links in that webwatch box on the home page.
Help with this is greatly appreciated!
a simple html form with two fields - one for a url and one for a line of text. And a submit button. When submitted, it will add the URL and line of text to the top of a .txt file (or MySQL database if needed, but preferably .txt).
The second part is a php script that reads the text file with the data and outputs html code in the following format (or similar):
<a href="NEWEST URL" class="weblinks"> NEWEST LINE OF TEXT </a>
<br>
<a href="SECOND URL" class="weblinks"> SECOND LINE OF TEXT </a>
<br>
etc until X items have been listed - probably around 5
I'd also like another php file which lists every item in the log file for archival purposes.
The two parts are separate - the form is for me (and only me, don't worry about security issues) to add links to my webwatch box (http://www.microbyteproductions.com/home.php) on the home page. The second part is to display the latest links in that webwatch box on the home page.
Help with this is greatly appreciated!