[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.&nbsp; This doesn't mail anything, but
you get the idea:<br><br>
<br>
<pre>&lt;html&gt;
&lt;head&gt;
&lt;script language=&quot;JavaScript&quot;&gt;
&lt;!--
function submitForm()
{
&nbsp; document.form1.submit();
&nbsp; alert(&quot;submitted&quot;);
}
//--&gt;
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;


&lt;form action=&quot;&quot; name=&quot;form1&quot;
method=&quot;post&quot;&gt;
test one&lt;input name=&quot;name&quot;
type=&quot;text&quot;&gt;&lt;br&gt;
test two&lt;input name=&quot;company&quot;
type=&quot;text&quot;&gt;&lt;br&gt;
&lt;a href=&quot;javascript:submitForm();&quot;&gt;&lt;img
src=&quot;images/form_t2.gif&quot;&gt;&lt;/a&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;




</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>
&quot;submit.html&quot; 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>
&lt;ragbrai65@yahoo.com&gt; wrote:<br>
&gt; <br>
&gt; Is it possible to have two actions in a form for example <br>
&gt; &lt;form action=&quot;mailto:whatever@yahoo.com&quot;
action=&quot;submit.html&quot;<br>
&gt; <br>
&gt; David Stout<br>
&gt; Business Forms Analyst &amp; Student<br>
&gt; <br>
&gt; __________________________________________________<br>
&gt; Do You Yahoo!?<br>
&gt; Tired of spam? Yahoo! Mail has the best spam protection around 
<br>
&gt;
<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)--