473,394 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

two action commands within one html form?

Greetings from Paris:

Is it possible to have two actions command within the same html form?

I have a form including an action that send the content of the form
within a very nicely formatted e-mails to given adresses.

Now, I would like to have a second action to feed an online database
(csv file)with the data submitted through the form. (I have the script
to do this).

Each action works well exclusively (one without the other) but I
haven't been successful having two action commands in the same form.

Is this possible? If yes, I thank you in advance for any tips.

Best regards from Paris,

Christophe
Jul 20 '05 #1
6 11800
cj***@bigfoot.com (Christophe) writes:
Is this possible? If yes, I thank you in advance for any tips.


No.

What you can do, is to collect the data manually (with Javascript) and
build an URL corresponding to what the form would send, and then
send it yourself before the form is submitted.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
Christophe wrote:
Is it possible to have two actions command within the same html form?


No (not in any sensible way anyway). Have the action point to one script
that does two jobs (or does one job then performs an http redirect to
another script to do a different job).
--
David Dorward http://dorward.me.uk/
Jul 20 '05 #3
"Christophe" <cj***@bigfoot.com> wrote in message
news:70**************************@posting.google.c om...
Greetings from Paris:

Is it possible to have two actions command within the same html form?


I'm really not sure about this but there's this:

<form ....... onSubmit="">

I use this to run some javascript form_fields check before performing the
form action
one could perhaps trigger the script from here??

correct me if Im wrong

Gordan :-)
Jul 20 '05 #4
Thank you.

Lasse Reichstein Nielsen <lr*@hotpop.com> wrote in message news:<1x**********@hotpop.com>...
cj***@bigfoot.com (Christophe) writes:
Is this possible? If yes, I thank you in advance for any tips.


No.

What you can do, is to collect the data manually (with Javascript) and
build an URL corresponding to what the form would send, and then
send it yourself before the form is submitted.

/L

Jul 20 '05 #5
David:

Thank you. I will look into conbining the two jobs in one script.

David Dorward <do*****@yahoo.com> wrote in message news:<bk*******************@news.demon.co.uk>...
Christophe wrote:
Is it possible to have two actions command within the same html form?


No (not in any sensible way anyway). Have the action point to one script
that does two jobs (or does one job then performs an http redirect to
another script to do a different job).

Jul 20 '05 #6
Gordan:

Thank you for your help.

"Gordan" <go********@torkulMAKNI.hr> wrote in message news:<bk**********@ls219.htnet.hr>...
"Christophe" <cj***@bigfoot.com> wrote in message
news:70**************************@posting.google.c om...
Greetings from Paris:

Is it possible to have two actions command within the same html form?


I'm really not sure about this but there's this:

<form ....... onSubmit="">

I use this to run some javascript form_fields check before performing the
form action
one could perhaps trigger the script from here??

correct me if Im wrong

Gordan :-)

Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sylvie Stone | last post by:
Hi group - I have an html form for that uses username and password to login to a specific area of the website. The "area" the user wants to go to is based on a pull down menu. Becasue the...
19
by: Pete | last post by:
I have form/select which executes a function using onchange. No problem. However, when I validate the page with a strict HTML 4.01 doctype at http://validator.w3.org, it demands either an action or...
7
by: TJS | last post by:
what is wrong here, the submit will only post page back to itself instead of specifed action <SCRIPT language="Javascript"> function Submit_Form(){ document.Form1.Action="cart.asp";...
3
by: danny | last post by:
Hi, I have a form which needs posting the php script below. (I sent my vars to a cookie, which I have read correctly). This is the form command used in hoping to process my information. ...
4
by: John Baker | last post by:
Hi: I have a MACRO and as one step in it I am opening a form, which is based on a query. The query calls for entry of a portion of an associates name as the selection criteria for records. Using...
3
by: asianboi | last post by:
Hi, In my application, I have a web browser control and load up a local html page. Within the html page, the following code exists. However, when I click on the button that invokes the 'form...
28
by: Tim_Mac | last post by:
hi, i'm new to .net 2.0, and am just starting to get to grips with the gridview. my page has autoEventWireUp set to true, which i gather is supposed to figure out which handlers to invoke when...
3
by: shanmukhi | last post by:
hi all, i got a problem with struts. iam unable to find it. i have written an action class, form bean class and a jsp page on submitting form, request is going to action class but it is not...
6
by: Arthur | last post by:
Hello. How might it be possible to change where a form action is directed based on a selected option. For example I have this: <FORM METHOD = "post" ACTION = ""> And a drop down such as
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.