Discussion Locked

submit type button...

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have two command buttons(type=sumbit) on a web page. One is Rose and one is lilly and when i click on Rose it should go to rose page..so I want to call a function (VBscript) which can
assess the name of the command button. Is it possible
to do that????

9 replies

by esadacca

Rather than specifying the Form Action in the Form, do so in script. For example (I've written mine in Javascript):

by al_<al

The way I understand the problem is that you wish to have a single VB script (action of the form) that parses the submission and executes some action based on what it finds, rather than switching to one of two scripts.

Try:

In your VB script, simply test for a value (not null) in request object 'rose' or 'lily'

by al_<al

even more oops.... Value needs to be there else the user sees a blank button. Doh! It will still work, but you have to test for positive 'true' value in action script

by rsv

HI,
Here is the code...

Rose/Lilly

Hope this will help you.
GOOD LUCK...:)

This discussion is closed to new replies.