View Single Post
  #11 (permalink)  
Old 08-10-2008, 09:13 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Admin
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 442
iTrader: (0)
TeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to behold
Interesting. Try this:

PHP Code:
<?php
//--------------------------Set these paramaters--------------------------

// Subject of email sent to you.
$subject 'Submitted Applicant';

// Your email address. This is where the form information will be sent.
$emailadd '**edited-out email addresses**';

// Where to redirect after form is processed.
$url 'http://www.disbrowpr.org/thankyou.htm';

// Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.
$req '0';

// --------------------------Do not edit below this line--------------------------
$text "Results from form:";
$line '
'
;
$log __file__.':'.__line__."\n".print_r($_POST,true)."\n";
foreach (
$_POST as $key => $value) {
  
$log .= __file__.':'.__line__."\n";
  if (
$req == '1') {
    
$log .= __file__.':'.__line__."\n";
    if (
$value == ''){
      
$log .= __file__.':'.__line__."\n";
      echo 
"$key is empty";
      die;
    }
  }
  
$j strlen($key);
  if (
$j 20) {
    
$log .= __file__.':'.__line__."\n";
    echo 
"Name of form element $key cannot be longer than 20 characters";
    die;
  }
  
$j 20 $j;
  
$space ' ';
  for (
$i 1$i <= $j$i++) {
    
$log .= __file__.':'.__line__."\n";
    
$space .= ' ';
  }
  
$value str_replace("\n"$line$value);
  
$conc $key.":".$space.$value.$line;
  
$text .= $conc;
  
$log .= __file__.':'.__line__."\n\n\n*************************\n".$text."\n*************************";
  
$space ' ';  
}
mail($emailadd$subject$text'From: '.$emailadd.'');
echo 
'<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
?>
And then post the results.

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote