".$version."
Current PHP version: ".phpversion()."
Current Revision Date: $date");
break;
}
}
$date=date("l, F dS, Y \a\\t g:i a");
$server=$_SERVER['SERVER_NAME'];
$msg="Here is the information submitted to $formName from $_SERVER[REMOTE_ADDR] on $date\r\n\r\n------------------------\r\n";
//...... Make sure we keep the variables
$subject = $_REQUEST['subject'];
$thankyoupage = $_REQUEST['thankyoupage'];
$xmlFile = $_REQUEST['xmlfile'];
$unreg = $_REQUEST['uR'];
$email = $_REQUEST['eM'];
if (file_exists($xmlFile))
{
$fd = fopen(basename($xmlFile),'r');
while(!feof($fd))
{
$contents .= fgets($fd,1024);
}
fclose($fd);
}
else
{
err("No <xml> data file found
Please upload the data xml file ".$_REQUEST['xmlfile']);
}
$file_info = preg_replace("/\r|\n/"," ",$contents);
//...... Includes the form results in your thank you page
$incresults = (preg_match('/
Below is the information you submitted:
";
$txtmsg=$formName.'|'.date("Y-m-d H:i:s").'|'.$_SERVER['REMOTE_ADDR'].'|';
$_REQVARS=array_reverse($_REQVARS);
foreach($_REQVARS as $key=>$value)
{
$new1=str_replace("_"," ",$key);
$msg .= "$new1: ".stripslashes($value)."\r\n\r\n";
$addtoThank.="$new1: ".stripslashes($value)."
";
$txtmsg .= "$new1: ".stripslashes($value)."|";
}
$addtoThank.="