形成问题? [英] form problem?

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

问题描述

您好,


如何将str_questions值添加到表单中?!以下是

不起作用。我也试过了


document.write("< input type =''hidden''name =''slidervalues''

value = str_questions> ;");


谢谢


Geoff

document.getElementById(" Slider1ValueText")。innerH TML = str_questions;


document.write("< form

action =''http:// website / path / cgi-bin / formmail -nms.cgi''

method =''post''>");

document.write("< input type =''hidden' 'name =''slidervalues''

value =''str_questions''>");

document.write("< input type =''隐藏''name =''收件人''

value =''extraemails''>");

document.write("< input type = ''submit''send''>");

解决方案

Geoff Cox写道:

你好,

如何将str_questions值转换为表单?!以下情况不起作用。我也试过了

document.write("< input type =''hidden''name =''slidervalues''
value = str_questions>");


Jaysus Geoff!?你正在写'STRING' " str_questions",而不是

插入* VARIABLE"的值str_questions!想一想:


document.write("< input type =''hidden''name =''slidervalues''value =''" +

str_questions +"''>");

谢谢

Geoff

document.getElementById(" Slider1ValueText" ).innerH TML = str_questions;

document.write(" form
action =''http://website/path/cgi-bin/formmail-nms.cgi' '
method =''post''>");
document.write("< input type =''hidden''name =''slidervalues''
value =''str_questions''>");
document.write("< input type =''hidden''name =''recipient''
value =''extraemails'' >");
document.write("< input type =''submit''send''>");



2005年9月10日星期六09:31:05 +0000(UTC),ExGuardianReader

< no *** @ noway.com>写道:

document.write("< input type =''hidden''name =''slidervalues''value =''" +
str_questions + "''>");




谢谢!我知道这是错的但是看不出怎样才能正确。

现在正常工作但第二个问题 - 我要创建< form ....

< / form>不使用document.write()打开一个新窗口?我想b / b
想象它与使用< SPAN元素和

document.getElementById(" myID")。innerHTML有关但不清楚如何做

it ...


document.write("< form action =''http://website/path/formmail-nms.cgi''

method =''post''>");

document.write("< input type =''hidden''name =''slidervalues' 'value =''" +

str_questions +"''>");

document.write("< input type =''hidden ''name =''收件人''价值

=''extraemails''>");

document.write("< input type =' 'submit''value ='''发送''

onlick - ''sentlidervalues''>");

document.write("< / form> ;");


干杯


Geoff


Geoff Cox写道:

2005年9月10日星期六09:31:05 +0000(UTC),ExGuardianReader
< no *** @ noway.com>写道:

document.write("< input type =''hidden''name =''slidervalues''value =''" +
str_questions +"''>");

谢谢!我知道这是错的,但是看不出怎样才能正确。
现在正常工作但第二个问题 - 我要创建< form ....
< / form>不使用document.write()打开一个新窗口?我想想它与使用< SPAN元素和
document.getElementById(" myID")。innerHTML有关但不清楚怎么做
它...



我不知道上面要做什么,这一切看起来都很困惑。

下面有一个语法错误,修复可能会有所帮助(或者不......)。


一些一般提示:


- 手动将其包裹在大约70个字符处以停止自动包装。 />
- 确保代码可以剪切和粘贴并且可以正常工作(或演示

失败)而无需进一步的努力。

- 正确阻止代码以便它是易于阅读。

document.write(" form action =''http://website/path/formmail-nms.cgi''
method =''post' '>");
document.write("< input type =''hidden''name =''slidervalues''value =''" +
str_questions +"' '>");
document.write("< input type =''hidden' 'name =''收件人''价值
=''extraemails''>");
document.write("< input type =''submit''value =''send ''
onlick - ''sentlidervalues''>");




最后一行与onclick属性有严重错误,它使

完全没有意义。它似乎有一个连字符而不是等号

,而值是表单的名称而不是脚本。


[...] < br $> b $ b -

Rob


Hello,

How do I get the str_questions values into a form?! The following does
not work. I have also tried

document.write("<input type=''hidden'' name=''slidervalues''
value=str_questions>");

Thanks

Geoff
document.getElementById("Slider1ValueText").innerH TML = str_questions;

document.write("<form
action=''http://website/path/cgi-bin/formmail-nms.cgi''
method=''post''>");
document.write("<input type=''hidden'' name=''slidervalues''
value=''str_questions''>");
document.write("<input type=''hidden'' name=''recipient''
value=''extraemails''>");
document.write("<input type=''submit''send''>");

解决方案

Geoff Cox wrote:

Hello,

How do I get the str_questions values into a form?! The following does
not work. I have also tried

document.write("<input type=''hidden'' name=''slidervalues''
value=str_questions>");
Jaysus Geoff!? You''re writing the *STRING" "str_questions", not
inserting the value of the *VARIABLE" str_questions! THINK ABOUT IT:

document.write("<input type=''hidden'' name=''slidervalues'' value=''" +
str_questions + "''>");
Thanks

Geoff
document.getElementById("Slider1ValueText").innerH TML = str_questions;

document.write("<form
action=''http://website/path/cgi-bin/formmail-nms.cgi''
method=''post''>");
document.write("<input type=''hidden'' name=''slidervalues''
value=''str_questions''>");
document.write("<input type=''hidden'' name=''recipient''
value=''extraemails''>");
document.write("<input type=''submit''send''>");




On Sat, 10 Sep 2005 09:31:05 +0000 (UTC), ExGuardianReader
<no***@noway.com> wrote:

document.write("<input type=''hidden'' name=''slidervalues'' value=''" +
str_questions + "''>");



Thanks! I knew it was wrong but couldn''t see how to get it right.
Working OK now but a second question - hwo do I create the <form ....
</form> without using document.write() which opens a new window? I
imagine it has to do with using a <SPAN element and
document.getElementById("myID").innerHTML but not clear how to do
it...

document.write("<form action =''http://website/path/formmail-nms.cgi''
method=''post''>");
document.write("<input type =''hidden'' name =''slidervalues'' value=''" +
str_questions + "''>");
document.write("<input type =''hidden'' name =''recipient'' value
=''extraemails''>");
document.write("<input type =''submit'' value=''send''
onlick-''sendslidervalues''>");
document.write("</form>");

Cheers

Geoff


Geoff Cox wrote:

On Sat, 10 Sep 2005 09:31:05 +0000 (UTC), ExGuardianReader
<no***@noway.com> wrote:

document.write("<input type=''hidden'' name=''slidervalues'' value=''" +
str_questions + "''>");

Thanks! I knew it was wrong but couldn''t see how to get it right.
Working OK now but a second question - hwo do I create the <form ....
</form> without using document.write() which opens a new window? I
imagine it has to do with using a <SPAN element and
document.getElementById("myID").innerHTML but not clear how to do
it...



I have no idea what to make of the above, it all seems very confused.
There is a syntax error below, fixing that may help (or not...).

Some general tips:

- Manually wrap it at about 70 characters to stop automatic wrapping.
- Make sure code can be cut and pasted and works (or demonstrates the
failure) without futher effort.
- Block code properly so it is easy to read.

document.write("<form action =''http://website/path/formmail-nms.cgi''
method=''post''>");
document.write("<input type =''hidden'' name =''slidervalues'' value=''" +
str_questions + "''>");
document.write("<input type =''hidden'' name =''recipient'' value
=''extraemails''>");
document.write("<input type =''submit'' value=''send''
onlick-''sendslidervalues''>");



The last line has a serious error with the onclick attribute, it makes
no sense at all. It seems to have a hyphen instead of an equals sign
and the value is the name of the form rather than script.

[...]
--
Rob


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

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