Is there a way to allow guests to add lines to a .txt or .js file on my site- Like I have a random quote script running and it uses a .txt or .js file that looks like this:
var quotes=new Array()
quotes[0]='There are some people who live in a dream world, and there are some who face reality; and then there are those who turn one into the other. <i>-By Douglas Everett</i>'
quotes[1]='Whether you think you can or whether you think you can\'t, you\'re right! <i>-Henry Ford</i>'
...
quotes[30]='To hell with circumstances; I create opportunities. <i>-Bruce Lee</i>'
function displayQuote(){
var whichquote=Math.floor(Math.random()*(quotes.length))
document.getElementById("quote").innerHTML = quotes[whichquote];
setTimeout("displayQuote()", 3000); //2.6 secs interval
}
How can I allow guests to add quotes to the file via a form?
http://www.freewebs.com/pozzuolana/ran.htm - page
http://www.freewebs.com/pozzuolana/ran.txt - txt file
Thanks- coacl
var quotes=new Array()
quotes[0]='There are some people who live in a dream world, and there are some who face reality; and then there are those who turn one into the other. <i>-By Douglas Everett</i>'
quotes[1]='Whether you think you can or whether you think you can\'t, you\'re right! <i>-Henry Ford</i>'
...
quotes[30]='To hell with circumstances; I create opportunities. <i>-Bruce Lee</i>'
function displayQuote(){
var whichquote=Math.floor(Math.random()*(quotes.length))
document.getElementById("quote").innerHTML = quotes[whichquote];
setTimeout("displayQuote()", 3000); //2.6 secs interval
}
How can I allow guests to add quotes to the file via a form?
http://www.freewebs.com/pozzuolana/ran.htm - page
http://www.freewebs.com/pozzuolana/ran.txt - txt file
Thanks- coacl
Comment