GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   $30 to programer that will help me. Easy Job. (https://gfy.com/showthread.php?t=421411)

snipah7 01-24-2005 09:41 AM

$30 to programer that will help me. Easy Job.
 
I am building a site and I need the surfer to be able to browse to a file on their computer and also fill in some text fields then when they press the submit button the the file gets uploaded to my server and I get an email with the info.

DEA - banned for life 01-24-2005 09:44 AM

bump for economy :1orglaugh

pornanza 01-24-2005 09:58 AM

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;
  }

 }

?>



All times are GMT -7. The time now is 06:25 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123