Form Handling 
Author Message
 Form Handling

On my form I have a lot of text boxes and checkboxes,
etc.  Also included is three buttons, when I click on one,
I would like ALL of the data from the form to be
transfered to a certain page.  When I hit another of those
buttons, I would like all of the data from the same form
to be transfered to a different page, different pages for
each of the three buttons, but the information must stay
the same.  Can anyone help me with this?

Thank You.
Mythran



Mon, 19 Apr 2004 03:42:39 GMT  
 Form Handling
Have you tried (assuming JavaScript on the client side)..???

<input type="submit" value="Button One"
  onclick="this.form.action='pageOne.asp'">
<input type="submit" value="Button Two"
  onclick="this.form.action='pageTwo.asp'">
<input type="submit" value="Button Three"
  onclick="this.form.action='pageThree.asp'">

--
Michael Harris
Microsoft.MVP.Scripting
--

Quote:

> On my form I have a lot of text boxes and checkboxes,
> etc.  Also included is three buttons, when I click on one,
> I would like ALL of the data from the form to be
> transfered to a certain page.  When I hit another of those
> buttons, I would like all of the data from the same form
> to be transfered to a different page, different pages for
> each of the three buttons, but the information must stay
> the same.  Can anyone help me with this?

> Thank You.
> Mythran



Mon, 19 Apr 2004 04:26:38 GMT  
 Form Handling
This might work, and I will try it, but is there a way to
do it with VBScript???

Mythran

Quote:
>-----Original Message-----
>Have you tried (assuming JavaScript on the client
side)..???

><input type="submit" value="Button One"
>  onclick="this.form.action='pageOne.asp'">
><input type="submit" value="Button Two"
>  onclick="this.form.action='pageTwo.asp'">
><input type="submit" value="Button Three"
>  onclick="this.form.action='pageThree.asp'">

>--
>Michael Harris
>Microsoft.MVP.Scripting
>--




- Show quoted text -

Quote:
>> On my form I have a lot of text boxes and checkboxes,
>> etc.  Also included is three buttons, when I click on
one,
>> I would like ALL of the data from the form to be
>> transfered to a certain page.  When I hit another of
those
>> buttons, I would like all of the data from the same
form
>> to be transfered to a different page, different pages
for
>> each of the three buttons, but the information must
stay
>> the same.  Can anyone help me with this?

>> Thank You.
>> Mythran

>.



Mon, 19 Apr 2004 05:02:59 GMT  
 Form Handling
This might work, and I will try it, but is there a way to
do it with VBScript???

Mythran

Quote:
>-----Original Message-----
>Have you tried (assuming JavaScript on the client
side)..???

><input type="submit" value="Button One"
>  onclick="this.form.action='pageOne.asp'">
><input type="submit" value="Button Two"
>  onclick="this.form.action='pageTwo.asp'">
><input type="submit" value="Button Three"
>  onclick="this.form.action='pageThree.asp'">

>--
>Michael Harris
>Microsoft.MVP.Scripting
>--




- Show quoted text -

Quote:
>> On my form I have a lot of text boxes and checkboxes,
>> etc.  Also included is three buttons, when I click on
one,
>> I would like ALL of the data from the form to be
>> transfered to a certain page.  When I hit another of
those
>> buttons, I would like all of the data from the same
form
>> to be transfered to a different page, different pages
for
>> each of the three buttons, but the information must
stay
>> the same.  Can anyone help me with this?

>> Thank You.
>> Mythran

>.



Mon, 19 Apr 2004 05:03:04 GMT  
 Form Handling
Assuming you have established VBScript as the default client side script language...

<input type="submit" value="Button One"
  onclick='me.form.action="pageOne.asp"'>

If not, then

<input type="submit" value="Button One"
  onclick='vbscript:me.form.action="pageOne.asp"'>

If you meant to ask something different , please clarify a bit ;-)...

--
Michael Harris
Microsoft.MVP.Scripting
--

Quote:

> This might work, and I will try it, but is there a way to
> do it with VBScript???

> Mythran

> >-----Original Message-----
> >Have you tried (assuming JavaScript on the client
> side)..???

> ><input type="submit" value="Button One"
> >  onclick="this.form.action='pageOne.asp'">
> ><input type="submit" value="Button Two"
> >  onclick="this.form.action='pageTwo.asp'">
> ><input type="submit" value="Button Three"
> >  onclick="this.form.action='pageThree.asp'">

> >--
> >Michael Harris
> >Microsoft.MVP.Scripting
> >--



> >> On my form I have a lot of text boxes and checkboxes,
> >> etc.  Also included is three buttons, when I click on
> one,
> >> I would like ALL of the data from the form to be
> >> transfered to a certain page.  When I hit another of
> those
> >> buttons, I would like all of the data from the same
> form
> >> to be transfered to a different page, different pages
> for
> >> each of the three buttons, but the information must
> stay
> >> the same.  Can anyone help me with this?

> >> Thank You.
> >> Mythran

> >.



Mon, 19 Apr 2004 05:39:08 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. How to call a form routine from a module by the form handle

2. Form Handling

3. Web Form Handling

4. Form handles

5. 16bit / 32bit form handles

6. VBA Form handling,,,,,Help

7. CGI form handling

8. Getting Forms handle In UserControl(ocx) from an application

9. How to get Form handle from embedded Control ?

10. Form Handle from Server to Client?????Help!

11. using the window (form) handle

12. Passing a form handle

 

 
Powered by phpBB® Forum Software