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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up a simple form to write to a file?

Status
Not open for further replies.

Rixride

IS-IT--Management
May 3, 2001
41
US
I am trying to figure out how to have a form's variables write to a file.

<br><b>Your feedback will help plan&nbsp;and prioritize future improvements.&nbsp;&nbsp;
Thanks!</b>
<P></P>
<form method=&quot;post&quot; action=&quot;&quot;>
<P><h3>What was the last thing that you looked for on
AOWeb?</h3><TEXTAREA id=TEXTAREA1 style=&quot;WIDTH: 664px; HEIGHT: 64px&quot; name=AOWeb_q1_last_used_for cols=71></TEXTAREA>
<P></P>

What would the action be?

Thanks

-=Rick Cruz=-
 
The action would be a call to a script that can read the text fields of your form, usually a cgi, asp, or php script - &quot;/cgi-bin/writetofile.cgi&quot; - as an example. Writing to a file is outside the abilities of HTML and Javascript and needs a server-side script to handle the chore.

There's always a better way. The fun is trying to find it!
 
you can also look into FileSystemObject:


the form action would point to a page with the FileSystemObject script to do the writing for you




logo.gif width='75' height='15'

bath.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top