使用asp在服务器上保存csv文件的html表单 [英] html form using asp to save csv file on a server

查看:91
本文介绍了使用asp在服务器上保存csv文件的html表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题已经被涵盖了,但它超出了我的能力范围。他们刚刚发布了代码,但除了html和动作脚本之外,我并不熟悉任何东西。你们能帮助我吗?

我有这个html表单,我需要它提交到csv文件。我应该从哪里开始?这是表格的链接。

http://www.wzzo.com/pages/formSurvey/survey.html


提前致谢。我很乐意回答您可能遇到的任何动作脚本问题。

I know this question was already covered, but it was covered way beyond my ability. They just posted the code, but i am not realy familiar with anything except html and action script. Can you guys help me.
I have this html form and i need it to submit to a csv file. Where should i begin? Here''s a link to the form.

http://www.wzzo.com/pages/formSurvey/survey.html

Thanks in advance. I would be happy to answer any action script questions you may have.

推荐答案

您唯一需要做的就是将csv文件的相对路径设置为 ;动作"表单标签的属性。您的表单目前说:[html]< form name =" form1"方法= QUOT;交" action =""> [/ html]它应该说:: [html]< form name =" form1"方法= QUOT;交" action =" /myCsvFolder/myFormHandler.csv"> [/ html]让我知道这是否能回答你的问题。


Jared
the only thing you need to do is put the relative path of the csv file as the "action" attribute of the form tag. your form currently says:[html]<form name="form1" method="post" action="">[/html]it should say::[html]<form name="form1" method="post" action="/myCsvFolder/myFormHandler.csv">[/html]Let me know if this answers your question.

Jared


我的formHandler.csv必须包含哪些内容?请不要害怕过度解释。我通过教程构建了表单。它告诉我使用我的字段名称和百分号制作.txt文档(看起来完全像这样)


%% _ q1,%% _ q2,%% _ q3,%% _ q4, %% _ q5,%% _ q6,%% _ q7,%% _ q8,%%评论,


显示comp我希望如何编写csv文件。感谢您的帮助,并提前感谢任何其他帮助。我是否需要为csv文件创建单独的目录?是否所有提交都存储在一个文件或多个文件中?在创建.csv表单处理程序之后我还有什么需要做的吗?
What does my formHandler.csv have to consist of? Please don''t be afraid to over explain. I constructed the form through a tutorial. It told me to make a .txt doc with my field names and percent signs (looks exactly like this)

%%_q1,%%_q2,%%_q3,%%_q4,%%_q5,%%_q6,%%_q7,%%_q8,%% comments,

to show the comp how i want my csv file written. Thanks for the help so far and thanks in advance for any additional help. Do i need to create a separate directory for the csv files? Are all the submissions going to be stored in one file or multiple files? After creating that .csv form handler is there anything else i have to do?



我的formHandler.csv必须包含哪些内容?请不要害怕过度解释。我通过教程构建了表单。它告诉我使用我的字段名称和百分号制作.txt文档(看起来完全像这样)


%% _ q1,%% _ q2,%% _ q3,%% _ q4, %% _ q5,%% _ q6,%% _ q7,%% _ q8,%%评论,


显示comp我希望如何编写csv文件。感谢您的帮助,并提前感谢任何其他帮助。我是否需要为csv文件创建单独的目录?是否所有提交都存储在一个文件或多个文件中?在创建.csv表单处理程序之后还有什么我需要做的吗?
What does my formHandler.csv have to consist of? Please don''t be afraid to over explain. I constructed the form through a tutorial. It told me to make a .txt doc with my field names and percent signs (looks exactly like this)

%%_q1,%%_q2,%%_q3,%%_q4,%%_q5,%%_q6,%%_q7,%%_q8,%% comments,

to show the comp how i want my csv file written. Thanks for the help so far and thanks in advance for any additional help. Do i need to create a separate directory for the csv files? Are all the submissions going to be stored in one file or multiple files? After creating that .csv form handler is there anything else i have to do?



ahh。我的上一个答案看起来有点太快了。我假设你已经有一些表格处理程序,其文件扩展名为.csv。这当时并没有响铃,但现在如果我理解你,你没有一个表单处理程序,但你只想将数据保存到逗号分隔的变量文件(纯文本数据库) )。这是对的吗?


如果是这样,那么我收回我之前说的话。您将需要首先创建一个表单处理程序,但这很容易。您还需要制作一个带有.csv的纯文本文件。扩展,但你可以留空。将它放在自己的文件夹中是一个个人偏好的问题,但我想它也会影响安​​全性,所以是的,我会把它放在自己的文件夹中。


但首先,制作这个表单处理程序:

ahh. It looks like I rushed in a little too fast with my last answer. I assumed you had some form handler already in place which had the file extension ".csv" This didn''t ring a bell at the time, but now if I understand you, you don''t have a form handler in place, but you just want to save the data to a comma-separated variable file (plain text database). Is this right?

If so, then I take back what I said before. You will need to make a form handler first, but this is pretty easy. You also need to make a plain text file with a ".csv" extension but you can just leave it blank. Putting it in its own folder is a matter of personal preference, but I guess it can also affect security, so yeah, I would put it in its own folder.

But first, make this form handler:

展开 | 选择 < span class =codeDivider> | Wrap | 行号


这篇关于使用asp在服务器上保存csv文件的html表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆