Home > Archive > PHP SQL > April 2004 > Submit button performing 2 actions - formmail.pl and add_to_db.php
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Submit button performing 2 actions - formmail.pl and add_to_db.php
|
|
| Woof-Woof 2004-04-17, 8:30 pm |
| Hello,
How do I get a SUBMIT button on a user input form to perform 2
actions, not just one.
One action is I want to send the form input fields to formmail.pl in
my cgi-bin directory (<form name="form01" method="POST" on submit
action="http://www.mydomain.com/cgi-bin/formmail.pl"> ).
The other action I want at the same time is to also send the form
input fields to a .php file for adding the data to a MySQL database
(<form name="form01" method="POST" on submit action="add_to_db.php"> ).
Thank you.
---
Allen
| |
| MeIsDavid 2004-04-18, 12:32 am |
|
"Woof-Woof" <otie_nospam@cox.net> wrote in message
news:O2jgc.8076$S42.930@lakeread03...
> Hello,
>
> How do I get a SUBMIT button on a user input form to perform 2
> actions, not just one.
>
> One action is I want to send the form input fields to formmail.pl in
> my cgi-bin directory (<form name="form01" method="POST" on submit
> action="http://www.mydomain.com/cgi-bin/formmail.pl"> ).
>
> The other action I want at the same time is to also send the form
> input fields to a .php file for adding the data to a MySQL database
> (<form name="form01" method="POST" on submit action="add_to_db.php"> ).
Instead of using two different scripting languages, just use one. Then put
both these functions into one function and call *that* script.
Alternatively - call the add_to_db.php file and use php's mail function.
http://ca.php.net/manual/en/ref.mail.php
------------------------------------------------------
Exceptional Gift Baskets Online!
http://cranberrycorners.ca/home.shtml
|
|
|
|
|