homepage Welcome to WebmasterWorld Guest from 54.224.53.192
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Multiple Form Action Attributes
is it possible to make a form perform 2 actions?
stavs

10+ Year Member



 
Msg#: 880 posted 12:35 pm on Jul 19, 2001 (gmt 0)

It would be handy if I could make a form execute two actions.

Is this possible?

stavs.

 

knighty

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 880 posted 12:48 pm on Jul 19, 2001 (gmt 0)

yes ;)

bobriggs

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 880 posted 3:07 pm on Jul 19, 2001 (gmt 0)

how?

theperlyking

10+ Year Member



 
Msg#: 880 posted 3:13 pm on Jul 19, 2001 (gmt 0)

Surely not possible without resorting to javascript or some form of black magic involving sacrificing a copy of Frontpage 2000?

agerhart

WebmasterWorld Senior Member agerhart us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 880 posted 3:14 pm on Jul 19, 2001 (gmt 0)

what about with ASP?......it has to be possible

knighty

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 880 posted 3:31 pm on Jul 19, 2001 (gmt 0)

You can do it using javascript either on onsubmit calling a function etc

evinrude

10+ Year Member



 
Msg#: 880 posted 5:21 pm on Jul 19, 2001 (gmt 0)

Wouldn't it depend upon the actions? I think more info is needed here. Sending a request to some dynamicly processed page (such as ASP or PHP) could allow for many actions. I guess my question would be, "What two actions would you like to perform?" :)

stavs

10+ Year Member



 
Msg#: 880 posted 6:23 pm on Jul 19, 2001 (gmt 0)

action 1 - anyform.cgi

action 2 - activate an auto responder

the anyform script is excellent for our needs but does not provide for auto responders. Hence the need for two actions on the submission of the form.

MikeFoster

10+ Year Member



 
Msg#: 880 posted 11:49 pm on Jul 21, 2001 (gmt 0)

Here's an idea.

This goes in a SCRIPT element:

function mySubmit() {
  if (data_validates) {
    runAutoResponder();
    // form will be submitted
  }
  else {
    return false; // don't allow submit
  }
}

This goes in the BODY element:

<form name='form1' action='anyform.cgi' method='post' onsubmit='mySubmit()'>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved