The place where everyone hangs out, chats, gossips, and argues
User avatar
By Roddy
#3765
someone asked me :

"I have a JS database that stores loads of entires, I just need to know how to add things to that DB using a form"

does anyone know?
User avatar
By Matt
#3766
I know sod all about JavaScript and refuse to learn it.

But do you mean it's storing things in a text file?

Not heard of a JS database, but then I'm not a JS man.

M
User avatar
By Roddy
#3768
yeh, cheers Matt
User avatar
By Matt
#3769
I'm sure that you can't write to a file on a server using client side JS.

You'll have to use CGI, PHP or whatever.

M
By Morals
#3805
You need to use ASP. You'll need to write an ASP page which contains the form you wish to use for data collection. You'll need to store the database on the server making sure you can write to the file as well as read from it. Then you'll need to connect to it (I use ADODB). You'll need to write a routine which creates a record set from the data entered into the form and updates the database.

For more info I'd suggest visiting http://www.w3schools.com and reading up on ADODB, vbscript, SQL and ASP where you should find some useful info. Also, a visit to http://groups.google.com can pay dividends as someone will have had the same problems you're bound to come up against.

Hope this helps.
By David
#3835
It may just be me...

But does this have anything to do with Moyles?

David
User avatar
By Roddy
#3907
like all of your posts u mean?
By David
#3930
true