View Full Version : User submitting into a javascript file

02-04-2004, 10:44 PM
Is it possible for the user to input text into a form on a site and for that text to be put into a javascript "quotes" file which will then display that text on a page?

So, for instance, you've got this .js file uploaded


var quotes=new Array()



var whichquote=Math.floor(Math.random()*(quotes.length))


Could a user input Text3 into a form and it appears in the .js file as -



and so on?

02-05-2004, 02:00 AM
Can't be done with javascript as far as I know. You'll need to use a serverside language, such as php or asp.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum