php - how to cc
Posted: Sun Sep 19, 2010 12:55 pm
Ladies and Gentlemen,
I am a CF guy and need to figure out this cc issue with php. I have tried everthing to no avail. I need to cc with this process.php page. is it possible?
<---- start code--->
<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','Yes');
pt_register('POST','Name');
pt_register('POST','Emaiil');
pt_register('POST','Seminar');
pt_register('POST','Phone');
pt_register('POST','Seats');
if($Name=="" || $Emaiil=="" || $Seminar=="" || $Seats=="" ){
$errors=1;
$error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
}
if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$Emaiil)){
$error.="<li>Invalid email address entered";
$errors=1;
}
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
$to = 'info@email.com' . ', ';
$to .= $Emaiil;
$message="Hi ".$Name."
INFORAMTION WAS HERE
";
$message = stripslashes($message);
mail($to,"Form Submitted by ....... | Message Here",$message,"From: email@usa.com");
?>
<---end code--->
Thank you for any help
Jeff
I am a CF guy and need to figure out this cc issue with php. I have tried everthing to no avail. I need to cc with this process.php page. is it possible?
<---- start code--->
<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','Yes');
pt_register('POST','Name');
pt_register('POST','Emaiil');
pt_register('POST','Seminar');
pt_register('POST','Phone');
pt_register('POST','Seats');
if($Name=="" || $Emaiil=="" || $Seminar=="" || $Seats=="" ){
$errors=1;
$error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
}
if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$Emaiil)){
$error.="<li>Invalid email address entered";
$errors=1;
}
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
$to = 'info@email.com' . ', ';
$to .= $Emaiil;
$message="Hi ".$Name."
INFORAMTION WAS HERE
";
$message = stripslashes($message);
mail($to,"Form Submitted by ....... | Message Here",$message,"From: email@usa.com");
?>
<---end code--->
Thank you for any help
Jeff