Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

GoGoComputerz

macrumors newbie
Original poster
Nov 13, 2008
6
0
I was needing help coding sending files to email via php. I know how to send form responses, but I'm not sure how to send files... This is the code I use to send form responses:


<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( "email@email.com", "SubJect Line",
$message, "From: $email" );
header( "Location: thanks.html" );
?>
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.