Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Two Actions with one form
- From: paul at novitskisoftware.com (Paul Novitski)
- Subject: [Javascript] Two Actions with one form
- Date: Sun Mar 26 15:27:00 2006
At 12:51 PM 3/26/2006, Del Wegener wrote: >Upon submission of a form I would like two actions to happen: >action="/cgi-bin/bizdb-aed.cgi" to put the contents of the form >in a database >action=https://www.paypal.com/cgi-bin/webscr > >How do I accomplish this? > >I am guessing JavaScript -- that's why I tried this list. Del, I don't know of a way to insert data in a database using JavaScript, which is prevented from writing to files on the client computer for security reasons and has no way to write to files on the server because it's running on the client. I'd say what you want to do is submit your form to a server-side script (PHP etc.) that writes values to the database then redirects to the destination page. Regards, Paul
- Follow-Ups:
- [Javascript] Two Actions with one form
- From: Paul Novitski
- [Javascript] Two Actions with one form
- References:
- [Javascript] Two Actions with one form
- From: Del Wegener
- [Javascript] Two Actions with one form
- Prev by Date: [Javascript] Two Actions with one form
- Next by Date: [Javascript] Two Actions with one form
- Previous by thread: [Javascript] Two Actions with one form
- Next by thread: [Javascript] Two Actions with one form
- Index(es):