1. I have create a email sending form. After I enter all the particulars,
while sending this mail to somebody. Can anybody tell me that how can I
store the whole particular from that email form into my database.

$query = "insert into yourtable (field1, field2, ...) values('$field1',
'$field2', ...)";
mysql_query($query) or die(mysql_error());

2. Can I send the whole form for example this email form by using mail()
function?

$body = "field1 = $field1\r\n";
$body .= "field2 = $field2\r\n";
#etc
$headers = "From: yourmeailhere\r\n";
$headers .= "Reply-to: youremailhere\r\n";
mail("whowantsit", "Subject", $body, $headers);


3. How can I provide the attachment facility in this mail form? I would like
to allow user to attach their file and send it out. How can I attach that
file and how can I send it out by mail function in php?

Probably easiest to use the mail class on Manuel Lemos' class archive.

Don't miss the Zend Web Store's Grand Opening on January 23, 2001!
http://www.zend.com
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/venues.htm




-- 
PHP General 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]

Reply via email to