存储问题的答案 [英] Store the answer to a question

查看:88
本文介绍了存储问题的答案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问访问者他们访问我们网站的原因使用

javascript


Var strReason = Prompt( 你为什么要访问?


如何将其存储在文本文件或Access数据库中?


TIA

马克

I want to ask a visitor the reason they visited our website using
javascript:

Var strReason = Prompt("Why did you visit?")

How can I store this in a text file or Access database?

TIA
Mark

推荐答案

Mark1234567写道:
Mark1234567 wrote:

我想要向访问者询问他们访问我们网站的原因使用

javascript


Var strReason =提示(&你为什么访问?")


如何将其存储在文本文件或Access数据库中?
I want to ask a visitor the reason they visited our website using
javascript:

Var strReason = Prompt("Why did you visit?")

How can I store this in a text file or Access database?






怎么样?通过将答案发布到您的服务器,并从那里处理它。

JavaScript最多可以帮助您发布它,但它不能存储在

数据库中,或者平面文件。


您需要使用服务器语言,例如PHP。

(实际上,JavaScript也可以用于服务器端,但这很少见。)


问候,

Erwin Moller

Hi,

How? By posting the answer to your server, and handle it from there.
JavaScript can, at most, help you post it, but it cannot store in in a
database, or flat file.

You need to use a serversidelanguage for that, like PHP.
(Actually, JavaScript can also be used serverside, but that is rare.)

Regards,
Erwin Moller


>

TIA

马克
>
TIA
Mark


Mark1234567写道:
Mark1234567 wrote:

我想问访问者他们访问我们网站的原因是使用

javascript


Var strReason = Prompt(" Why你访问了吗?")


如何将其存储在文本文件或Access数据库中?
I want to ask a visitor the reason they visited our website using
javascript:

Var strReason = Prompt("Why did you visit?")

How can I store this in a text file or Access database?



在99.x%的情况下,您有三种选择:


- 您可以将它存储在一个文件中在服务器上;

- 您可以将它存储在服务器的数据库中(例如Access);

- 您可以将它存储在客户端的cookie中。


希望这有帮助,


-

Bart

In 99.x% of the cases, you have three options:

- You can store it in a file at server;
- You can store it in a database at server (e.g. Access);
- You can store it in a cookie at client.

Hope this helps,

--
Bart


Do你知道Javascript代码将它存储在我们服务器上的一个单独的

文件中吗?

2月2日,10:40 * am,Bart Van der Donck< ; b ... @nijlen.comwrote:
Do you know what the Javascript code would be to store it in a flat
file on our server?
On Feb 2, 10:40*am, Bart Van der Donck <b...@nijlen.comwrote:

Mark1234567写道:
Mark1234567 wrote:

我想问一个访问者访问我们网站的原因使用

javascript


Var strReason = Prompt( 你为什么访问?)
Var strReason = Prompt("Why did you visit?")


如何将其存储在文本文件或Access数据库中?
How can I store this in a text file or Access database?



在99.x%的情况下,您有三种选择:


- 您可以将它存储在一个文件中在服务器上;

- 您可以将它存储在服务器的数据库中(例如Access);

- 您可以将它存储在客户端的cookie中。


希望这会有所帮助,


-

* Bart


In 99.x% of the cases, you have three options:

- You can store it in a file at server;
- You can store it in a database at server (e.g. Access);
- You can store it in a cookie at client.

Hope this helps,

--
*Bart

这篇关于存储问题的答案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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