Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/05/2008, 14:55
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Respuesta: envio por mail de formulario dinamico

Hola shebita2003,

Podrias poner el código ya agregandole lo que necesitas para el envio del mail? ya que en si si haces algo así:
Código PHP:
<?php
if($_POST['enviar']=="Enviar"){

function 
generartabla() {
    
            echo 
"<table style='float:none;width:200px;margin-top:50px;margin-left:20px;'>";
            while(list(
$key$Value) = each($_POST)){
                if (
$key != 'enviar'){
                    if (
$key == 'email'){
                    echo 
"<tr>";
                    echo 
"<td style='font-weight:bold;'>"$key ." : </td><td>"$Value "</td>";
                    echo 
"</tr>";
                    echo 
"<tr>";
                    echo 
"<td style='font-weight:bold;'>&nbsp;</td><td>&nbsp;</td>";
                    echo 
"</tr>";
                    

                    }else{
                    echo 
"<tr>";
                    echo 
"<td style='font-weight:bold;'>"$key ." : </td><td>"$Value "</td>";
                    echo 
"</tr>";
                    echo 
"</tr>";
                    }                
                } else {
                echo 
"<tr>";
                echo 
"<td style='font-weight:bold;'>&nbsp;</td><td>&nbsp;</td>";
                echo 
"</tr>";
                echo 
"</table>";
                }
            }
         
       
$mail generartabla();  
       
mail$to$subject$mail$headers );

?>
Te debería de funcionar correctamente.

Saludos.