由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Q: 2 submit buttons in 1 page (转载)
相关主题
Newbie javascript question: change radio button updates textbox messagepython 3.5 typing hint普及之後 python真要統治世界了。
wpf:命令和点击(onclick)C#处理XML的问题
java update main UI from child thread issue (转载)Afx window,如何获得control handle?
一切用dynamic typing的语言写大系统都是耍流氓cvs configuration
How to get button name? (转载)引用的几个基本问题,有点糊涂
Node.js 有用过的么 什么评价What language I should use?
Why C++11 introduce "decltype" and "auto"?我写的quick sort
珍惜生命,远离 R 和 Goa c++ question for template
相关话题的讨论汇总
话题: submit话题: box话题: buttons话题: text话题: page
进入Programming版参与讨论
1 (共1页)
w*s
发帖数: 7227
1
【 以下文字转载自 BuildingWeb 讨论区 】
发信人: wds (净洗前尘,从头再来), 信区: BuildingWeb
标 题: Q: 2 submit buttons in 1 page
发信站: BBS 未名空间站 (Wed Jul 18 22:19:14 2012, 美东)
say i have
1. a textbox, 1 submit button.
2. in the text box default is "box 1", i type "hello"
3. press submit, same page will display "you typed hello"
this is simple.
now in the same page, i want to dup this text box and submit button.
so 2 text boxes, 2 submit buttons.
the problem is,
when i type sth. in box 1,
then type anything in box 2.
when i press the 2nd submit button,
the text in box 1 goes to the default value.
i'm using perl + cgi.pm.
in general, can this be done ? no need to be perl.
thx !
g*****g
发帖数: 34805
2
Some simple js should do, just pass a different parameter.

【在 w*s 的大作中提到】
: 【 以下文字转载自 BuildingWeb 讨论区 】
: 发信人: wds (净洗前尘,从头再来), 信区: BuildingWeb
: 标 题: Q: 2 submit buttons in 1 page
: 发信站: BBS 未名空间站 (Wed Jul 18 22:19:14 2012, 美东)
: say i have
: 1. a textbox, 1 submit button.
: 2. in the text box default is "box 1", i type "hello"
: 3. press submit, same page will display "you typed hello"
: this is simple.
: now in the same page, i want to dup this text box and submit button.

d****n
发帖数: 1637
3



1 (共1页)
进入Programming版参与讨论
相关主题
a c++ question for templateHow to get button name? (转载)
How to define a data type of 1 bit size?Node.js 有用过的么 什么评价
问一下这个cast在java里是怎么work的Why C++11 introduce "decltype" and "auto"?
请教一个C的关于调用matrix的问题珍惜生命,远离 R 和 Go
Newbie javascript question: change radio button updates textbox messagepython 3.5 typing hint普及之後 python真要統治世界了。
wpf:命令和点击(onclick)C#处理XML的问题
java update main UI from child thread issue (转载)Afx window,如何获得control handle?
一切用dynamic typing的语言写大系统都是耍流氓cvs configuration
相关话题的讨论汇总
话题: submit话题: box话题: buttons话题: text话题: page