表格有2个提交按钮...... [英] Form with 2 submit buttons...

查看:60
本文介绍了表格有2个提交按钮......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!


我有一个文件,我必须提交按钮,我需要在这些文件之间有所不同

。 />

步骤#1 - 使用默认选择打开html win


步骤#2 - 用户可以为列表选择一些批评

步骤2可能会重复,或者根本不会使用。 $

选项按钮按钮


步骤#3 - 用户选择一些文件/项目,然后进行处理。

有一个按钮。

完成。


重点是,我需要两个用于SQL选择的critearies br />
步骤2,以及步骤3中的选定文件(列表)。实际上步骤3的

选择仅适用于步骤3.

关于如何提交2个按钮提交数据的任何好主意?


BR

Sonnich

Hi all!

I have a file where I''d have to submit buttons, and I need to differ
between those.

Step #1 - open html win with default selection

Step #2 - user may select some criteries for the list
Step 2 might be repeated, or not used at all. There is a button "apply
selection"

Step #3 - user selects a number of files/items, which are then handled.
There is a button for that.
Done.

The point is, that I need both the critearies for the SQL selection in
step 2, but also the selected files (list) in step 3. Actually the
selection for step 2 are needed for step 3 only.

Any good ideas on how I might have 2 buttons with submits data?

BR
Sonnich

推荐答案



Sonnich写道:

Sonnich wrote:

大家好!


我有一个文件,我必须提交按钮,我需要在这些文件之间有所不同




步骤#1 - 使用默认选择打开html win


步骤#2 - 用户可以为列表选择一些批评

步骤2可能会重复或不重复用过的一点都不$

选项按钮按钮


步骤#3 - 用户选择一些文件/项目,然后进行处理。

有一个按钮。

完成。


重点是,我需要两个用于SQL选择的critearies br />
步骤2,以及步骤3中的选定文件(列表)。实际上步骤3的

选择仅适用于步骤3.

关于如何提交2个按钮提交数据的任何好主意?


BR

Sonnich
Hi all!

I have a file where I''d have to submit buttons, and I need to differ
between those.

Step #1 - open html win with default selection

Step #2 - user may select some criteries for the list
Step 2 might be repeated, or not used at all. There is a button "apply
selection"

Step #3 - user selects a number of files/items, which are then handled.
There is a button for that.
Done.

The point is, that I need both the critearies for the SQL selection in
step 2, but also the selected files (list) in step 3. Actually the
selection for step 2 are needed for step 3 only.

Any good ideas on how I might have 2 buttons with submits data?

BR
Sonnich



不完全确定你要做什么,但如果你想要两个提交

按钮,只需给它们不同的名字:


< input type =" submit"名称= QUOT; FOO" value =" First Button"

< input type =" submit"名称= QUOT;栏" value =" Second Button" />


在目标页面上:


if(isset(

Not entirely sure what you''re trying to do, but if you want two submit
buttons just give them different names:

<input type="submit" name="foo" value="First Button"/>
<input type="submit" name="bar" value="Second Button"/>

And on the target page:

if(isset(


_REQUEST [''foo''])){

//使用了第一个按钮

}

else if( isset(
_REQUEST[''foo''])) {
//first button was used
}
else if(isset(


_REQUEST [''bar''])){

//使用第二个按钮

}

_REQUEST[''bar''])) {
//second button was used
}


这篇关于表格有2个提交按钮......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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