[Cialug] two actions
Scott Phillips
cialug@cialug.org
Wed, 09 Mar 2005 07:32:55 -0600
--Boundary_(ID_iRdY3W8I6TljBHcOYWqtcg)
Content-type: text/plain; charset=us-ascii; format=flowed
Content-transfer-encoding: 7BIT
No, you can't have two actions like that, but you can probably do something
similar with javascript. This doesn't mail anything, but you get the idea:
<html>
<head>
<script language="JavaScript">
<!--
function submitForm()
{
document.form1.submit();
alert("submitted");
}
//-->
</script>
</head>
<body>
<form action="" name="form1" method="post">
test one<input name="name" type="text"><br>
test two<input name="company" type="text"><br>
<a href="javascript:submitForm();"><img src="images/form_t2.gif"></a>
</form>
</body>
</html>
At 04:23 PM 3/8/2005 -0600, you wrote:
>I'm not sure if this is possible, but it's usually best to have your
>"submit.html" action handle whatever other action you want to happen.
>
>
>On Tue, 8 Mar 2005 14:21:18 -0800 (PST), David Stout
><ragbrai65@yahoo.com> wrote:
> >
> > Is it possible to have two actions in a form for example
> > <form action="mailto:whatever@yahoo.com" action="submit.html"
> >
> > David Stout
> > Business Forms Analyst & Student
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
>_______________________________________________
>Cialug mailing list
>Cialug@cialug.org
>http://cialug.org/mailman/listinfo/cialug
Scott Phillips
Web Developer
Cowles Library, Drake University
(515) 271-2975
--Boundary_(ID_iRdY3W8I6TljBHcOYWqtcg)
Content-type: text/html; charset=us-ascii
Content-transfer-encoding: 7BIT
<html>
<body>
No, you can't have two actions like that, but you can probably do
something similar with javascript. This doesn't mail anything, but
you get the idea:<br><br>
<br>
<pre><html>
<head>
<script language="JavaScript">
<!--
function submitForm()
{
document.form1.submit();
alert("submitted");
}
//-->
</script>
</head>
<body>
<form action="" name="form1"
method="post">
test one<input name="name"
type="text"><br>
test two<input name="company"
type="text"><br>
<a href="javascript:submitForm();"><img
src="images/form_t2.gif"></a>
</form>
</body>
</html>
</pre>At 04:23 PM 3/8/2005 -0600, you
wrote:<blockquote type=cite class=cite cite>I'm not sure if this is
possible, but it's usually best to have your<br>
"submit.html" action handle whatever other action you want to
happen.<br><br>
<br>
On Tue, 8 Mar 2005 14:21:18 -0800 (PST), David Stout<br>
<ragbrai65@yahoo.com> wrote:<br>
> <br>
> Is it possible to have two actions in a form for example <br>
> <form action="mailto:whatever@yahoo.com"
action="submit.html"<br>
> <br>
> David Stout<br>
> Business Forms Analyst & Student<br>
> <br>
> __________________________________________________<br>
> Do You Yahoo!?<br>
> Tired of spam? Yahoo! Mail has the best spam protection around
<br>
>
<a href="http://mail.yahoo.com/" eudora="autourl">http://mail.yahoo.com</a><br>
_______________________________________________<br>
Cialug mailing list<br>
Cialug@cialug.org<br>
<a href="http://cialug.org/mailman/listinfo/cialug" eudora="autourl">http://cialug.org/mailman/listinfo/cialug</a>
</blockquote>
<x-sigsep><p></x-sigsep>
Scott Phillips<br>
Web Developer<br>
Cowles Library, Drake University<br>
(515) 271-2975</body>
</html>
--Boundary_(ID_iRdY3W8I6TljBHcOYWqtcg)--