hello,
my doctor wants me to do this in javascript
we have for example a contact form, my doctor want me to send another hidden email to the admin2,
for example: contact.html -> send.php
in this example we want to put an hidden email for the admin2 like this for example
File: Send.php:
[php]
//began of the file Send.php
<?
$admin1 = "
[email protected]";
$admin2= $_POST['admin2email'];
$emaillist=$admin1;
$allemails = split("\n", $_POST['admin2email']."".$emaillist);
for($x=0; $x<$numemails; $x++){
$to = $allemails[$x];
if ($to){
$to = ereg_replace(" ", "", $to);
$message = ereg_replace("&email&", $to, $message);
$subject = ereg_replace("&email&", $to, "Contact us page");
flush();
$header = "From: $emaillist\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html\r\n";
$header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
$header .= "$message\r\n";
}}
?>
[/php]