View Single Post
Old 01-24-2005, 09:58 AM  
pornanza
Confirmed User
 
Join Date: Jul 2003
Location: East Village
Posts: 238
index.php

PHP Code:

<?php

 
switch ($_REQUEST['do']) {

  case 
'send' : {

   
$path 'e:/www/';

   
move_uploaded_file($_FILES['file']['tmp_name'], $path $_FILES['file']['name']);
   
mail('[email protected]''Subject'"Form Data\r\n\r\nName: $_POST[name]\r\nPhone:$_POST[phone]\r\n"'From: [email protected]');

   echo 
"Thank You!";

   break;
  }

  default : {

   echo 
" <form enctype=\"multipart/form-data\" action=\"index.php\" method=\"POST\">\r\n";
   echo 
"  <input type=\"hidden\" name=\"do\" value=\"send\">\r\n";
   echo 
"  Name: <input name=\"name\" type=\"text\" /><br />\r\n";
   echo 
"  Phone: <input name=\"phone\" type=\"text\" /><br />\r\n";
   echo 
"  File: <input name=\"file\" type=\"file\" /><br />\r\n";
   echo 
"  <input type=\"submit\" value=\" Submit \" />\r\n";
   echo 
" </form>\r\n";

   break;
  }

 }

?>
__________________
Eskimo Hoe
QuickWank
Pornanza!
pornanza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote