Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/07/2003, 15:06
Avatar de linker
linker
 
Fecha de Ingreso: noviembre-2002
Ubicación: Chile
Mensajes: 232
Antigüedad: 21 años, 5 meses
Puntos: 0
ayuda urgente amigos salvenme plis

amigos tengo un form corriendo con php exlente pero ahora me pidiero que incluya 3 checkbox que son 3 mail mas y quieren que el cliente al pinchar uno de esos tres mail el formulario de diriga a ese mail aparte del que esta por defecto, les pondre los codigos haber si me pueden salvar de esta no soy experto en php solo los modifico.. saludos

Código PHP:


//basicly it check's the recipient address...if you where wondering what it does
 
$recipient_in split(',',$recipient);
for (
$i=0;$i<count($recipient_in);$i++) {
   
$recipient_to_test trim($recipient_in[$i]);
   if (!
eregi("^[_\\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\\.)+[a-z]{2,3}$"$recipient_to_test)) {
      
print_error("<b>I NEED A VALID RECIPIENT EMAIL ADDRESS ($recipient_to_test) TO CONTINUE</b>");
   }
}
//change require to required
if ($required)
   
$require $required;

if (
$require) {
//this is kinda plain english
   
$require ereg_replace" +"""$require);
   
$required split(",",$require);
   for (
$i=0;$i<count($required);$i++) {
      
$string trim($required[$i]);
      if((!(${
$string})) || (!(${$string}))) {
         if (
$missing_fields_redirect) {
            
header ("Location: $missing_fields_redirect");
            exit;
         }
         
$require;
         
$missing_field_list .= "<b>You Did Not Enter: $required[$i]</b><br>\n";
      }

/* for php programmers only
 if variables are'nt gettin sent you can just
 uncomment this line and include this code which will get all variables sent
 in the form and put them all in the message variable */
 
 //$message = parse_form($HTTP_POST_VARS);
 
 /* if underscore's dont appear, put them in, its just may editor is SHIT */
 
 /*
 i dont use this because i need some variables and its not very reliable this was used in v1.0 & v1.1 */

          
}
}

//if no subject use $othersub
if (!$subject)
   
$subject "$othersub";
//if no $othersub & no $subject use form submission as subject
   
else if ((!$othersub) && (!$subject))
   
$subject "Form Submission";

//Send E-mail
//other = if you added a extra field to the form call them other - other4
// dont worry bout the $other variables if you dont have them in the form nothing will show in the email

mail("$recipient","$subject","

Nombre: $nombre Envio sus datos y escribio...

Email: $email
Fono: $fono
Asunto: $subject

Empresa: $empresa
Ciudad y Pais: $ciudad

Producto que me intereza
------------------------
Florence: $muebles
Florence: $optimizador
Florence: $aluminios
Florence: $presupuestos
Florence: $IBS

Mensaje: $message



Datos del equipo de donde se envio el mail

Browser Info: $HTTP_USER_AGENT
IP Address: $REMOTE_ADDR
-----------------------------------------------------------------------------------------------
Mail generado desde el formulario de [url]www.mipagina.cl[/url]
-----------------------------------------------------------------------------------------------

"
,"From: $name <$email>");
// END send e-mail

// if redirect tag is send to script, redirect to specifyed page
if ($redirect) {
   
header ("Location: $redirect");
   exit;
} else {
   print 
"<h1 align=\"center\"><i>Gracias su Formulario ha sido enviado</i></h1>\n";
   echo 
"<br><br>\n";
   echo 
"<center>Volver a...<a href=\"inicio.htm\">Inicio</a></center>\n\n";
   exit;
   } 
__________________
Somos criaturas productos de una idea
--------------------------------------
Linker :: Diseño tecnologías y algo Más

--------------------------------------