User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 426,795 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,779 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 5046 | Replies: 4
Reply
Join Date: Nov 2004
Posts: 5
Reputation: bladerbole is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bladerbole bladerbole is offline Offline
Newbie Poster

Save the values of a form

  #1  
Nov 30th, 2004
I have 3 inputs in a form and i want to save the value of input3 as C:\My Documents\(input1)\(input2).
I've tried using an <execCommand("SaveAs")> script, then use a <document.write(C:\...)> script, but the <document.write> script won't work.
Can anyone help me?

Please help,
Bladerbole
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 35
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Save the values of a form

  #2  
Dec 10th, 2004
JavaScript is client-side code. Trying to save files locally violates the browser security model.
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,910
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 118
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Save the values of a form

  #3  
Dec 10th, 2004
Document.write prints to the current HTML page, not to the hard drive, I believe. There is no way to get JavaScript to write anything to a hard drive. You will need to use a server-side language such as PHP or ASP, to save to the server's drive.
Reply With Quote  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 35
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Save the values of a form

  #4  
Dec 10th, 2004
Of course, you CAN save your form values in cookies. Not all users have cookies, enabled, but that is exactly what cookies were designed to do.

Do you need help with JavaScript cookie code?
Reply With Quote  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 35
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Save the values of a form

  #5  
Dec 13th, 2004
Did this work? Do you need more help? Pleave give us some feedback.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 7:12 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC