Re: novice forms question
| From: | Forsfot | Date: | Sun, 25 Feb 2001 17:39:42 +0000 |
| Subject: | Re: novice forms question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-6942@lists.php.net to get a copy of this message | ||
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" <caro2@home.com>
To: <php-db@lists.php.net>
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: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net