Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/10/2009, 01:03
RAAM08
 
Fecha de Ingreso: mayo-2009
Ubicación: Stgo. Pinotepa Nacional Oaxaca
Mensajes: 34
Antigüedad: 15 años
Puntos: 0
Enviar valor del $_POST[];

HOLA EL ERROR QUE TENGO ES EL SIGUIENTE TENGO UNA CLASE EN DONDE TENGO MI FORMULARIO DONDE EL USUARIO SE REGISTRA ES EL SIGUIENTE:
<input name="txtNombre" type="text" id="txtNombre" tabindex="1" size="50" value="<?php echo $n ?>"> </td>
</tr>
<tr>
<td class="Format1">Direcci&oacute;n:</td>
<td>
<textarea name="txtDireccion" id="txtDireccion" cols="40" rows="3" tabindex="2" value="<?php echo $d ?>">
</textarea> </td>
</tr>
<tr>
<td class="Format1">Tel&eacute;fono:</td>
<td>
<input name="txtTelefono" type="text" id="txtTelefono" tabindex="3" value="<?php echo $t ?>"> </td>
</tr>
<tr>
<td class="Format1">Email: </td>
<td>
<input name="txtEmail" type="text" id="txtEmail" size="50" tabindex="4" value="<?php echo $e ?>"> </td>
</tr>


Y EN OTRA CLASE ES DONDE TENGO LAS VARIABLES PARA MANDARLAS POR MAIL QUE ES LA SIGUIENTE:

class C
{
private $nombre;
private $direccion;
private $telefono;
private $email;
private $poblacion;
private $asunto;
private $comentario;

public function Contact($n,$d,$t,$e,$p,$a,$c)
{
$this->nombre = $n;
$this->direccion = $d;
$this->telefono = $t;
$this->email = $e;
$this->poblacion = $p;
$this->asunto = $a;
$this->comentario = $c;
}
$mail->Subject = $asunto;

$ip = $this->getRealIpAddr();

$msg = "------------------------------- \n <br />";
$msg.= " Comentarios \n <br />";
$msg.= "------------------------------- \n <br />";
$msg.= "NOMBRE: ".$nombre."\n <br />";
$msg.= "DIRECCIÓN: ".$direccion."\n <br />";
$msg.= "EMAIL: ".$email."\n <br />";
$msg.= "TELÉFONO: ".$telefono."\n <br />";
$msg.= "POBLACIÓN: ".$poblacion."\n <br />";
$msg.= "ASUNTO: ".$asunto."\n <br />";
$msg.= "HORA: ".date("h:i:s a ")."\n <br />";
$msg.= "FECHA: ".date("D, d M Y")."\n <br />";
$msg.= "IP: ".$ip."\n <br />";
$msg.= "------------------------------- \n\n <br />";
$msg.= $comentarios."\n\n";
$msg.= "------------------------------- \n <br />";

$mail->Body = $msg;

Y CUANDO MANDO A LLAMAR A LA CLASE DEL FORMULARIO LE PASO LOS SIGUIENTES PARAMENTROS
Código A:
Ver original
  1. $Con = new C($_POST["txtNombre"],$_POST["txtDireccion"],$_POST["txtTelefono"],$_POST["txtEmail"],$_POST["txtPoblacion"],$_POST["txtAsunto"],$_POST["txtComentario"]);

ME DICE LO SIGUIENTE:

Notice: Undefined variable: email in C:\Archivos de programa\Apache Software Foundation\Apache2.2\htdocs\MIWEB\paqL\C.php on line 86

PODRIAN AYUDARME PORFAVORE!!!!!