Sending form data and attachments to an email

0 Bernard Pyc0d333 Parah · April 12, 2015
Hey guys, Please I need help with this.
This is a simple html form in which I want all the data entered and attachments uploaded to be sent to an email address.

Select A File To Upload


I will be glad if you can use this form too make a php script to do that. Thanks.

Post a Reply


Oldest  Newest  Rating
+1 Samuel Oloruntoba · April 12, 2015
code not visible
+1 Manuel Treutlein · April 13, 2015
I also can`t see the source code, but maybe this help: 

<form action="destination_file.php" method="post">...</form>

In the destination_file.php you get your values:
$to = $_POST["to"];
$message = $_POST["message"];
// and so on  

You can send e-mails with this function: 
bool mail ( string $to, string $subject, string $message[, string $additional_headers, string $additional_parameters]])

The last two parameters are not necessary. 
+1 Gideon Appoh · April 13, 2015
I wished i could help but i can't get any useful source code here to help yo
+1 Delagre Delagre · April 15, 2015
Hi, use in your form enctype="multipart/form-data. Google more about it.
  • 1



Server-side, HTML embedded scripting language used to create dynamic Web pages.