循环外的Textarea [英] Textarea outside of loop

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

问题描述

您好。我有这个问题,我觉得应该很容易,但是这几天一直在苦苦挣扎



我有一个基于数据库记录集的列表。此列表包含满足特定条件的
记录,在此列表的底部我有一个

按钮,它将所有这些记录插入到数据库中的另一个表中。所以

很长一切都没问题。

但是,在这个列表的顶部我有一个用户可以写下来的textarea

一些文本也要放入表中的每条记录中。我不能循环这个

textarea,然后我必须全部填写它们。

我认为一些变量女巫从onload弹出窗口获取文本<通过request.form或javascript提示的
窗口可以做到这一点,但我不是

确定它是否可能甚至如何做到这一点。 - 而且,我想在页面顶部有一个

textarea而不是一些愚蠢的弹出窗口。


我怎么能实现这个? br />

Hi. I have this problem that I think should be easy but have been struggling
with this for days.
I have a list based on a recordset from a database. This list consists of
records meeting a certain criteria and at the bottom of this list i have a
button that inserts all these records to a′nother table in the database. So
long everything''s ok.
BUT, at the top of this list I have a textarea that the user can write down
some text to be put into every record in the table also. I can''t loop this
textarea, then I would have to fill out them all anyway.
I think that some variable witch fetched the text from an onload popup
window by request.form or javascript prompt would do the trick but I''m not
sure if it''s possible or even how to do this. -And, I would like to have the
textarea at the top of the page instead of some silly popup thing.

How could I achieve this?

推荐答案

需要查看你的代码

" Jen" < je*@hoganmail.com写信息

新闻:%2 **************** @ TK2MSFTNGP06.phx.gbl ...
need to see your code
"Jen" <je*@hoganmail.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...

嗨。我有这个问题,我觉得应该很容易,但是已经好几天了。

我有一个基于数据库记录集的列表。此列表包含满足特定条件的
记录,在此列表的底部我有一个

按钮,它将所有这些记录插入到数据库中的另一个表中。

这么长的一切都没问题。

但是,在这个列表的顶部,我有一个用户可以写的textarea

down一些文本也要放入表中的每条记录中。我不能循环

这个textarea,然后我必须全部填写它们。

我认为一些变量女巫从onload弹出窗口获取文本<通过request.form或javascript提示的
窗口可以做到这一点,但我不是

确定它是否可能甚至如何做到这一点。 - 并且,我想在页面顶部的textarea而不是一些愚蠢的弹出窗口。


我怎么能实现这个? br />
Hi. I have this problem that I think should be easy but have been
struggling with this for days.
I have a list based on a recordset from a database. This list consists of
records meeting a certain criteria and at the bottom of this list i have a
button that inserts all these records to a′nother table in the database.
So long everything''s ok.
BUT, at the top of this list I have a textarea that the user can write
down some text to be put into every record in the table also. I can''t loop
this textarea, then I would have to fill out them all anyway.
I think that some variable witch fetched the text from an onload popup
window by request.form or javascript prompt would do the trick but I''m not
sure if it''s possible or even how to do this. -And, I would like to have
the textarea at the top of the page instead of some silly popup thing.

How could I achieve this?



Jen写道:
Jen wrote:

嗨。我有这个问题,我觉得应该很容易,但是已经好几天了。

我有一个基于数据库记录集的列表。此列表

包含符合特定条件的记录,并且在底部

此列表中我有一个按钮,将所有这些记录插入到另一个
$数据库中的b $ b表。很长时间一切都没问题。

但是,在这个列表的顶部我有一个textarea,用户可以

写下一些文本放入每个记录在表中也。我不能循环这个textarea,然后我必须填写所有

无论如何。我认为一些变量女巫从一个onload

popup

窗口获取文本的request.form或javascript提示符就可以了,但是

我不确定它是否可能,甚至不知道如何做到这一点。 - 而且,我想

喜欢把textarea放在页面顶部,而不是一些

傻傻的弹出物。

我怎么能实现这个?
Hi. I have this problem that I think should be easy but have been
struggling with this for days.
I have a list based on a recordset from a database. This list
consists of records meeting a certain criteria and at the bottom of
this list i have a button that inserts all these records to a′nother
table in the database. So long everything''s ok.
BUT, at the top of this list I have a textarea that the user can
write down some text to be put into every record in the table also. I
can''t loop this textarea, then I would have to fill out them all
anyway. I think that some variable witch fetched the text from an onload
popup
window by request.form or javascript prompt would do the trick but
I''m not sure if it''s possible or even how to do this. -And, I would
like to have the textarea at the top of the page instead of some
silly popup thing.
How could I achieve this?



这听起来像是错误的有两个原因:


1.您将数据(行)存储在数据库中的两个不同位置。

除非这是某种归档方案,这种做法通常会导致维护噩梦。

2.您将相同的数据存储在表格的多行中。我无法想象这样做的可能原因。你能解释一下吗?


话虽如此,我不明白你遇到的问题。 循环

通过textarea甚至不应该进入你的脑海如果我

正确理解你的要求:只需分配
$ b中的文字$ b textarea到变量并在insert语句中使用该变量。为什么

你甚至会想到一个弹出窗口?


-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。这个电子邮件帐户是我的垃圾邮件陷阱所以我

不经常检查它。如果您必须离线回复,请删除

无垃圾邮件

This sounds "wrong-headed" for two reasons:

1. You are storing data (rows) in two separate places in the database.
Unless this is some sort of archiving scheme, this practice will typically
lead to maintenance nightmares.
2. You are storing the same data into multiple rows in a table. I cannot
fathom a possible reason for doing this. Could you explain please?

Having said that, I don''t understand the problem you are having. "Looping"
through a textarea should not have even entered your mind if I am
understanding your requirements correctly: simply assign the text in the
textarea to a variable and use that variable in your insert statements. Why
would you even be thinking about a popup window?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don''t check it very often. If you must reply off-line, then remove the
"NO SPAM"




" Bob巴罗斯[MVP]" < re ****** @ NOyahoo.SPAMcomwrote in message

news:uD **************** @ TK2MSFTNGP03.phx.gbl .. 。

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:uD****************@TK2MSFTNGP03.phx.gbl...

Jen写道:
Jen wrote:

>嗨。我有这个问题,我觉得应该很容易,但是已经好好奋斗了好几天。
我有一个基于数据库记录集的列表。这个列表
由符合某个标准的记录组成,在这个列表的底部我有一个按钮,可以将所有这些记录插入到数据库中的另一个表中。很长一切都没问题。
但是,在这个列表的顶部,我有一个文本区,用户可以写下一些文本,也可以放入表中的每个记录。我不能循环这个textarea,然后我将不得不填写所有
。我认为一些变量女巫通过request.form或javascript提示从onload
popup
窗口获取文本会做到这一点但是
我不确定它是否可能甚至如何做到这一点。 - 而且,我希望将textarea放在页面顶部而不是一些傻傻的弹出式东西。
我怎么能实现这个目标?
>Hi. I have this problem that I think should be easy but have been
struggling with this for days.
I have a list based on a recordset from a database. This list
consists of records meeting a certain criteria and at the bottom of
this list i have a button that inserts all these records to a′nother
table in the database. So long everything''s ok.
BUT, at the top of this list I have a textarea that the user can
write down some text to be put into every record in the table also. I
can''t loop this textarea, then I would have to fill out them all
anyway. I think that some variable witch fetched the text from an onload
popup
window by request.form or javascript prompt would do the trick but
I''m not sure if it''s possible or even how to do this. -And, I would
like to have the textarea at the top of the page instead of some
silly popup thing.
How could I achieve this?



这听起来像是错误的有两个原因:


1.您将数据(行)存储在数据库中的两个不同位置。

除非这是某种归档方案,这种做法通常会导致维护噩梦。

2.您将相同的数据存储在表格的多行中。我无法想象这样做的可能原因。你能解释一下吗?


话虽如此,我不明白你遇到的问题。 循环

通过textarea甚至不应该进入你的脑海如果我

正确理解你的要求:只需分配
$ b中的文字$ b textarea到变量并在insert语句中使用该变量。

为什么你甚至会想到一个弹出窗口?


This sounds "wrong-headed" for two reasons:

1. You are storing data (rows) in two separate places in the database.
Unless this is some sort of archiving scheme, this practice will typically
lead to maintenance nightmares.
2. You are storing the same data into multiple rows in a table. I cannot
fathom a possible reason for doing this. Could you explain please?

Having said that, I don''t understand the problem you are having. "Looping"
through a textarea should not have even entered your mind if I am
understanding your requirements correctly: simply assign the text in the
textarea to a variable and use that variable in your insert statements.
Why would you even be thinking about a popup window?



我的想法也是,


需要查看代码


my thoughts also,

Need to see code


>

-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。这个电子邮件帐户是我的垃圾邮件陷阱所以我

不经常检查它。如果您必须离线回复,请删除

无垃圾邮件
>
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don''t check it very often. If you must reply off-line, then remove the
"NO SPAM"



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

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