Current location: Hot Scripts Forums » Programming Languages » ASP » Write form data to a file in ASP


Write form data to a file in ASP

Reply
  #1 (permalink)  
Old 03-26-09, 12:08 PM
kateramsey kateramsey is offline
New Member
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question Write form data to a file in ASP

Hi There -

I need data from one of my web forms to go to a file. Ideally, it would go into an access database, but unless i'm wrong, i have to give everyone in the world read/write access to the database in order to do that, and since the form is collecting customer's personal information, that doesn't seem like a good idea.

so what do i do? write it to a text file and import it to the database later? And if so, how do i write it to the text file?

this is in ASP. I currently have it set up to write to a database, but get a VBScript error about permissions when I test it.

Thanks

Last edited by kateramsey; 03-26-09 at 12:12 PM.
Reply With Quote
  #2 (permalink)  
Old 03-30-09, 01:23 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
You won't need to give everyone access, only a single user. You use the credentials of that user in your script to access the database. Since your webserver is set to not hand out the source code of ASP pages, nobody should be able to see those credentials.

I'll move this to the ASP section for you.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote
  #3 (permalink)  
Old 03-30-09, 01:44 PM
kateramsey kateramsey is offline
New Member
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
oh of course. that makes sense.
Reply With Quote
  #4 (permalink)  
Old 04-03-09, 01:54 PM
webdevelopmenthouse webdevelopmenthouse is offline
Newbie Coder
 
Join Date: Apr 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
vbscript error means when inserting the data on database.. it means, the write permission have not been set to the directory where your access database is exist.. give that directory write permissions, and you shouldn't have any more errors..
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello all, can you help me? K4ot1K Other Languages 2 01-23-09 05:23 AM
Using a form to replace data in a text file dnb198 ASP 1 12-22-08 06:26 AM
Problem when uploading a file in form agarwalsrushti PHP 1 03-14-08 06:00 AM
Update Form + Update Query in one file sod_atticus PHP 1 07-21-06 02:15 AM
ASP upload prob minority ASP 1 06-27-05 08:35 AM


All times are GMT -5. The time now is 04:05 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.