[PHP-DB] novice forms question

2001-02-25 Thread Frank Carotenuto

If this is the right forum, can anyone tell me if I can post a form to two
addresses. I'd like to submit the results of a form to both a mailing list
and a MySql table. Thank you.

Frank Carotenuto, D.D.S.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] novice forms question

2001-02-25 Thread Forsfot

This is very crude, but is one way you can do this.

Form Page-

Form Action = "post_page"
input type = "text" name = "form_field1"
input type = "text" name = "form_field2"
...
input type = "submit"
/Form



post_page-
$body = "$form_field1, $form_field2";
mail(sdf, sdf, $body, sdf);
query = "insert into table table_name
(field1, field2)
values
('$form_field1', '$form_field2')";
run query;








- Original Message - 
From: "Frank Carotenuto" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 25, 2001 12:37 PM
Subject: [PHP-DB] novice forms question


 If this is the right forum, can anyone tell me if I can post a form to
 two
 addresses. I'd like to submit the results of a form to both a mailing
 list
 and a MySql table. Thank you.
 
 Frank Carotenuto, D.D.S.
 
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]