|
Posted by ZeldorBlat on 08/07/06 16:46
Sonnich wrote:
> 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
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'])) {
//first button was used
}
else if(isset($_REQUEST['bar'])) {
//second button was used
}
Navigation:
[Reply to this message]
|