homepage Welcome to WebmasterWorld Guest from 54.204.94.228
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




msg:592863
 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




msg:592864
 12:48 pm on Jul 19, 2001 (gmt 0)

yes ;)

bobriggs




msg:592865
 3:07 pm on Jul 19, 2001 (gmt 0)

how?

theperlyking




msg:592866
 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




msg:592867
 3:14 pm on Jul 19, 2001 (gmt 0)

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

knighty




msg:592868
 3:31 pm on Jul 19, 2001 (gmt 0)

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

evinrude




msg:592869
 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




msg:592870
 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




msg:592871
 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