p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: Can I set an HTML FORM ACTION on the fly?


Message #1 by phillip.a.kimble@g... on Tue, 4 Sep 2001 18:34:09
Got this working!!!!

Thanks for the help.

PAK

> try :
> 
> <form name="myform">
> <input type="button" 
> onClick="document.myform.action='first.asp';document.myform.submit();">
> <input type="button" 
> onClick="document.myform.action='second.asp';document.myform.submit();">
> </form>
> 
> At 18:34 04/09/01 +0000, you wrote:
> >I have two SUBMIT buttons on my HTML form.  I would like to set the 
ACTION
> >attribute on the HTML FORM tag based on which SUBMIT button is selected.
> >I have the following code which is giving an error that SF224.ACTION is
> >not an object.  Is there a way to do this on the fly?
> >
> >
> ><% Dim objComm, objRS, msg, txtCommand, counter, numApprop . . . %>
> >
> >
griffiths@x...
> >$subst('Email.Unsub')
> 
> 

  Return to Index