I am looking for a php code to add a url to a text file like this
1- user adds url to a text box
2- user adds site name
3- user hits submit button
The url that was entered in to the text box is then added to a .txt file along with the site name and is phased threw as a link so when it is output it looks like this: <a href="http://sample.com/">Sample</a>.
I will then use an <? includes ("file.txt"); ?> to pull the txt file to the page i want it to.
The link then should look like Sample and is clickable.
Is this possible?