Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to write the data fr

Status
Not open for further replies.

BigDoug

IS-IT--Management
Feb 20, 2002
49
US
Is there a way to write the data from a form submission to a file (lets say test.txt) on the local computer instead of sending it to the "POST" of a cgi file??
 
yes this is called Cookies. But you can only do it with the cookies API so that means you can only set a cookie with a certain value and retrieve that value at a later date.

Hope this helps. Gary Haran
 
Here is the code I have:

<script language=javascript><!--
if(usePostAll == 1){document.write(&quot;<input type=button value='Post all' onclick='postAll()'>&quot;);}else{document.write(&quot;<input type=button value='Post' onclick='openWin();setItem();document.forms[1].submit()'>&quot;);}
//--></script>

I need it to write the data it would have passed onto the CGI script to a file called posting.txt on the local computer and not send to the cgi script. Is that possible?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top