Foros del Web » Programando para Internet » PHP »

formMail en la una misma pagina (2)

Estas en el tema de formMail en la una misma pagina (2) en el foro de PHP en Foros del Web. Hola, despues de ver este post: http://www.forosdelweb.com/showthread.php?t=465564 y de intentar que mi formulario funcione recurro al foro. Por un capricho, decidi que el formulario de ...
  #1 (permalink)  
Antiguo 30/03/2007, 07:55
 
Fecha de Ingreso: agosto-2004
Mensajes: 113
Antigüedad: 19 años, 7 meses
Puntos: 0
formMail en la una misma pagina (2)

Hola, despues de ver este post:http://www.forosdelweb.com/f18/formmail-php-misma-pagina-465564/
y de intentar que mi formulario funcione recurro al foro.
Por un capricho, decidi que el formulario de contacto no tiene que abrirse en una ventana pop up ni estar en dos archivos separados (consulta.php y enviar.php) por más que funcione correctamente de esa manera.
Lo primero que intente fue:
Código PHP:
<?php
if($enviar){ @$Nombre $_POST['Nombre'];
@
$Email $_POST['Email'];
@
$Consulta $_POST['Consulta'];
@
$telefono $_POST['telefono'];
@
$inmob $_POST['in'];

mysql_query("update clientes set consultas=consultas+1 where clid='$inmob'");


$result mysql_query("select vid from visitantes where mail = '$Email'");
$results mysql_num_rows($result);
if (
$results>0) {
        
mysql_query("update visitantes set contactos=contactos+1 where mail='$Email'");
    } else {
        
mysql_query("insert into visitantes values (NULL, '$Nombre', '$Email', 1)");
}

$result mysql_query("select mail from clientes where clid = '$inmob'");
list(
$receptor) = mysql_fetch_array($result);

/
//************************************************************************/
$header "From: $Nombre <$Email>\n";
$header .= "To: ".$receptor."\n";
$header .= "X-Mailer: PHP4\n"//mailer
$header .= "MIME-Version: 1.0\n";
$header .= "Reply-to: ".$Email."\n";
$header .= "Content-type: text/html; charset=iso-8859-1\n";
//************************************************************************/


$cuerpo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html><head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>

</head>
<body>
     <tr>
    <td bgcolor='#fea941' align='left' valign='top'>" 
$Nombre " env&iacute;a una consulta desde misitio.com.ar
    <br>Nombre: " 
$Nombre "
    <br><a href='mailto: " 
$Email "'> " $Email "</a>
    <br>Tel&eacute;fono: " 
$telefono "
    <br>Consulta: " 
$Consulta "    
    </td></tr></body></html>"
;

mail($receptor,'Visitante de misitio.com.ar',$cuerpo,$header);
}
else{  <
form name="form1" method="post" action="enviar.php" onSubmit="MM_validateForm('Nombre','','R','Email','','RisEmail','consulta','','R');return document.MM_returnValue">
              <
table width="280" height="250" border="0" cellpadding="0" cellspacing="0">
                <
tr>
                  <
td align="left" valign="top">
<
table width="100%" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <
tr>
                              <
td align="left" valign="middle" bgcolor="#FEA941" class="fecha">Consulta 
                                para 
<strong><?php echo $receptor1?></strong></td>
                      </tr>
                    </table>
                          <table width="250" height="0" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                        <td width="271" align="left" valign="top" class="texto2"><input name="in" type="hidden" value="<?php echo $clid?>"> 
                        </td>
                      </tr>
                    </table>
                          <table width="250" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td align="left" valign="middle" class="opcion">Nombre<br>
                          <input name="Nombre" type="text" id="Nombre2" size="40" style="width:240px" class="formularios"></td>
                      </tr>
                    </table>
                          <table width="250" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td width="240" align="left" valign="middle" class="opcion">E-mail<br>
                          <input name="Email" type="text" id="Email2" size="40" style="width:240px" class="formularios"></td>
                      </tr>
                    </table>
                          <table width="250" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td align="left" valign="middle" class="opcion">Consulta<br>
                          <textarea name="Consulta" cols="40" rows="5" id="textarea" style="width:240px" class="formularios"></textarea></td>
                      </tr>
                    </table>
                          <table width="250" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                        <td><input type="submit" name="Submit" value="Enviar" class="bt-form"> 
                          <input type="reset" name="Submit2" value="Borrar" class="bt-form"></td>
                      </tr>
                    </table></td>
                </tr>
              </table>
            </form>}
?>
y deja de funcionar.


Entonces probe con esto
Código PHP:
 <?
if (!$HTTP_POST_VARS){
?> 
<form name="form1" method="post" action="enviar.php" onSubmit="MM_validateForm('Nombre','','R','Email','','RisEmail','consulta','','R');return document.MM_returnValue">
              <table width="280" height="250" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="left" valign="top">
<table width="100%" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                              <td align="left" valign="middle" bgcolor="#FEA941" class="fecha">Consulta 
                                para <strong><?php echo $receptor1?></strong></td>
                      </tr>
                    </table>
                          <table width="250" height="0" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                        <td width="271" align="left" valign="top" class="texto2"><input name="in" type="hidden" value="<?php echo $clid?>"> 
                        </td>
                      </tr>
                    </table>
                          <table width="250" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td align="left" valign="middle" class="opcion">Nombre<br>
                          <input name="Nombre" type="text" id="Nombre2" size="40" style="width:240px" class="formularios"></td>
                      </tr>
                    </table>
                          <table width="250" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td width="240" align="left" valign="middle" class="opcion">E-mail<br>
                          <input name="Email" type="text" id="Email2" size="40" style="width:240px" class="formularios"></td>
                      </tr>
                    </table>
                          <table width="250" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td align="left" valign="middle" class="opcion">Consulta<br>
                          <textarea name="Consulta" cols="40" rows="5" id="textarea" style="width:240px" class="formularios"></textarea></td>
                      </tr>
                    </table>
                          <table width="250" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                        <td><input type="submit" name="Submit" value="Enviar" class="bt-form"> 
                          <input type="reset" name="Submit2" value="Borrar" class="bt-form"></td>
                      </tr>
                    </table></td>
                </tr>
              </table>
            </form><?
}else{ 
@
$Nombre $_POST['Nombre'];
@
$Email $_POST['Email'];
@
$Consulta $_POST['Consulta'];
@
$telefono $_POST['telefono'];
@
$inmob $_POST['in'];

mysql_query("update clientes set consultas=consultas+1 where clid='$inmob'");


$result mysql_query("select vid from visitantes where mail = '$Email'");
$results mysql_num_rows($result);
if (
$results>0) {
        
mysql_query("update visitantes set contactos=contactos+1 where mail='$Email'");
    } else {
        
mysql_query("insert into visitantes values (NULL, '$Nombre', '$Email', 1)");
}

$result mysql_query("select mail from clientes where clid = '$inmob'");
list(
$receptor) = mysql_fetch_array($result);


//************************************************************************/
$header "From: $Nombre <$Email>\n";
$header .= "To: ".$receptor."\n";
$header .= "X-Mailer: PHP4\n"//mailer
$header .= "MIME-Version: 1.0\n";
$header .= "Reply-to: ".$Email."\n";
$header .= "Content-type: text/html; charset=iso-8859-1\n";
//************************************************************************/


$cuerpo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html><head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>

</head>
<body>
     <tr>
    <td bgcolor='#fea941' align='left' valign='top'>" 
$Nombre " env&iacute;a una consulta desde misitio.com.ar
    <br>Nombre: " 
$Nombre "
    <br><a href='mailto: " 
$Email "'> " $Email "</a>
    <br>Tel&eacute;fono: " 
$telefono "
    <br>Consulta: " 
$Consulta "    
    </td></tr></body></html>"
;

mail($receptor,'Visitante de misitio.com.ar',$cuerpo,$header);}
?>
y tampoco me funciona.
Donde esta el error? alguien me puede dar una mano?
Gracias
  #2 (permalink)  
Antiguo 30/03/2007, 08:26
 
Fecha de Ingreso: abril-2006
Ubicación: Colombia
Mensajes: 648
Antigüedad: 17 años, 11 meses
Puntos: 3
Re: formMail en la una misma pagina (2)

Hola

Bueno, en tu primer ejemplo tienes estos errores

list($receptor) = mysql_fetch_array($result);
/
//************************************************** **********************/

Como vez despues del list tienes un / y no esta como comentario asi que eso te da problemas

luego en esta linea

mail($receptor,'Visitante de misitio.com.ar',$cuerpo,$header);
}
else{ <form name="form1" method="post" action="enviar.php" onSubmit="MM_validateForm('Nombre','','R','Email', '','RisEmail','consulta','','R');return document.MM_returnValue">
<table width="280" height="250" border="0" cellpadding="0" cellspacing="0">
<tr>

no estas cerrando el codigo php, es decir deberia ser

else { ?> <form><table> etc....

y al final pasa lo mismo tienes

</form>}
?>
y debe ser
</form> <? }
?>
en el segundo ej cambie la condicion
<?
if (!$HTTP_POST_VARS)
por
<?
if ($HTTP_POST_VARS)

Haciendo esos cambios en cualquiera de los 2 ejemplos te debe mostrar el formulario sin problemas, lo de la conexion a bd lo estoy haciendo para probar mail y eso, espero te sirva.
__________________
Suerte.
_______________________________
"La vida es el principio de la muerte".
  #3 (permalink)  
Antiguo 30/03/2007, 11:01
 
Fecha de Ingreso: abril-2006
Ubicación: Colombia
Mensajes: 648
Antigüedad: 17 años, 11 meses
Puntos: 3
Re: formMail en la una misma pagina (2)

Hola

Bueno, en tu primer ej tambien tienes el problema de la variable $enviar, pues esta no toma valor pues no estas enviando ninguna variable con ese nombre, podrias usar $Enviar que es el value del submit, y ahi si te serviria perfecto, espero te sirva.
__________________
Suerte.
_______________________________
"La vida es el principio de la muerte".
  #4 (permalink)  
Antiguo 31/03/2007, 02:27
 
Fecha de Ingreso: agosto-2004
Mensajes: 113
Antigüedad: 19 años, 7 meses
Puntos: 0
Re: formMail en la una misma pagina (2)

hola, gracias por las dos respuestas!
estuve probando y logre que no salga ningun error (por lo menos visible).
El php quedo asi
Código PHP:
<?php /*empieza formulario*/
if($Enviar){@$Nombre $_POST['Nombre'];
@
$Email $_POST['Email'];
@
$Consulta $_POST['Consulta'];
@
$clid $_POST['clid'];

mysql_query("update clientes set consultas=consultas+1 where clid='$clid'");


$result mysql_query("select vid from visitantes where mail = '$Email'");
$results mysql_num_rows($result);
if (
$results>0) {
        
mysql_query("update visitantes set contactos=contactos+1 where mail='$Email'");
    } else {
        
mysql_query("insert into visitantes values (NULL, '$Nombre', '$Email', 1)");
}

$result mysql_query("select mail, cliente from clientes where clid = '$clid'");
list(
$receptor) = mysql_fetch_array($result);

$header "From: $Nombre <$Email>\n";
$header .= "To: ".$receptor."\n";
$header .= "X-Mailer: PHP4\n"//mailer
$header .= "MIME-Version: 1.0\n";
$header .= "Reply-to: ".$Email."\n";
$header .= "Content-type: text/html; charset=iso-8859-1\n";
//************************************************************************/


$cuerpo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html><head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>

</head>
<body>
     <tr>
    <td bgcolor='#fea941' align='left' valign='top'>" 
$Nombre " env&iacute;a una consulta desde misitio.com.ar
    <br>Nombre: " 
$Nombre "
    <br><a href='mailto: " 
$Email "'> " $Email "</a>
    <br>Consulta: " 
$Consulta "    
    </td></tr></body></html>"
;

mail($receptor,'Visitante de misitio.com.ar',$cuerpo,$header);

}
else{ 
//se manda// ?>    
<form action="ver.php?clid=<? echo $clid?>&amp;cliente=<? echo $cliente?>" method="post" name="form1" target="_self" onSubmit="MM_validateForm('Nombre','','R','Email','','RisEmail','consulta','','R');return document.MM_returnValue">
                    <table width="383" height="250" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                  <td align="left" valign="top">
<table width="383" height="20" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FEA941">
                            <tr>
                                                      <td align="left" valign="middle" bgcolor="#FEA941" class="fecha">Enviar 
                                                        una consulta a<strong>&nbsp;<?php echo $cliente?></strong></td>
                      </tr>
                    </table>
                          <table width="360" height="0" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                        <td width="271" align="left" valign="top" class="texto2"><input name="clid" type="hidden" value="<?php echo $clid?>"> 
                        </td>
                      </tr>
                    </table>
                          <table width="360" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td align="left" valign="middle" class="opcion">Nombre<br>
                          <input name="Nombre" type="text" id="Nombre2" size="40" style="width:360px" class="formularios"></td>
                      </tr>
                    </table>
                          <table width="360" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td width="240" align="left" valign="middle" class="opcion">E-mail<br>
                          <input name="Email" type="text" id="Email2" size="40" style="width:360px" class="formularios"></td>
                      </tr>
                    </table>
                          <table width="360" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td align="left" valign="middle" class="opcion">Consulta<br>
                          <textarea name="Consulta" cols="40" rows="5" id="textarea" style="width:360px" class="formularios"></textarea></td>
                      </tr>
                    </table>
                          <table width="360" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                        <td><input type="submit" name="Submit" value="Enviar" class="bt-form"> 
                          <input type="reset" name="Submit2" value="Borrar" class="bt-form"></td>
                      </tr>
                    </table></td>
                </tr>
              </table>
            </form><? }
//fin del formulario//?>
donde aparentemente (digo aparentemente porque un error tiene que haber) no hay errores, pero el correo no se envia.
No estoy muy seguro con esta linea
Código PHP:
$result mysql_query("select mail, cliente from clientes where clid = '$clid'");
list(
$receptor) = mysql_fetch_array($result); 
me parece que deberia ser
Código PHP:
$result mysql_query("select mail from clientes where clid = '$clid'");
list(
$receptor) = mysql_fetch_array($result); 
o asi
Código PHP:
$result mysql_query("select mail, cliente from clientes where clid = '$clid'");
list(
$receptor$receptor1) = mysql_fetch_array($result); 
o sino asi
Código PHP:
$result mysql_query("select mail from clientes where clid = '$clid'");
list(
$receptor) = mysql_fetch_array($result);
$result2 mysql_query("select cliente from clientes where clid = '$clid'");
list2($receptor1) = mysql_fetch_array($result2); 
Estoy muy errado? me estoy complicando demasiado?
saludos
  #5 (permalink)  
Antiguo 31/03/2007, 21:36
 
Fecha de Ingreso: abril-2006
Ubicación: Colombia
Mensajes: 648
Antigüedad: 17 años, 11 meses
Puntos: 3
Re: formMail en la una misma pagina (2)

Hola

Bueno, pues tienes 2 problemas

1. el form lo estas cerrando despues de los tables, y debes es cerrarlo despues del input type submit

2. la variable $Enviar no tiene nada puesto que no tienes una variable llamada asi en el formulario y cuando te dije $Enviar cometi el error de decirte que usaras $Enviar en vez de $Submit, pues el boton se llama Submit y tiene el valor enviar, y cuando lo mandas por post quedaria es $Submit = "Enviar"; entonces cambia en el if $Enviar por $Submit, y ya te debe con esos cambios funcionar perfecto desde que incluyas en algun lado la conexion a la bd pues tienes mysql_query pero no veo el mysql_connect que tal vez lo tengas en un archivo aparte y lo llamas con un include o no pusiste ese codigo, pero como te digo te debe ya funcionar bien, sin embargo te pongo el codigo corregido

<?php
if($Submit){
@$Nombre = $_POST['Nombre'];
@$Email = $_POST['Email'];
@$Consulta = $_POST['Consulta'];
@$telefono = $_POST['telefono'];
@$inmob = $_POST['in'];
mysql_query("update clientes set consultas=consultas+1 where clid='$inmob'");

$result = mysql_query("select vid from visitantes where mail = '$Email'");
$results = mysql_num_rows($result);
if ($results>0) {
mysql_query("update visitantes set contactos=contactos+1 where mail='$Email'");
} else {
mysql_query("insert into visitantes values (NULL, '$Nombre', '$Email', 1)");
}
$result = mysql_query("select mail from clientes where clid = '$inmob'");
list($receptor) = mysql_fetch_array($result);

//************************************************** **********************/
$header = "From: $Nombre <$Email>\n";
$header .= "To: ".$receptor."\n";
$header .= "X-Mailer: PHP4\n"; //mailer
$header .= "MIME-Version: 1.0\n";
$header .= "Reply-to: ".$Email."\n";
$header .= "Content-type: text/html; charset=iso-8859-1\n";
//************************************************** **********************/

$cuerpo = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html><head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
</head>
<body>
<tr>
<td bgcolor='#fea941' align='left' valign='top'>" . $Nombre . " env&iacute;a una consulta desde misitio.com.ar
<br>Nombre: " . $Nombre . "
<br>Email: <a href='mailto: " . $Email . "'> " . $Email . "</a>
<br>Tel&eacute;fono: " . $telefono . "
<br>Consulta: " . $Consulta . "
</td></tr></body></html>";
mail($receptor,'Visitante de misitio.com.ar',$cuerpo,$header);
}
else{ ?> <form name="form1" method="post" action="prueba.php" onSubmit="MM_validateForm('Nombre','','R','Email', '','RisEmail','consulta','','R');return document.MM_returnValue">
<table width="280" height="250" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top">
<table width="100%" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="middle" bgcolor="#FEA941" class="fecha">Consulta
para <strong><?php echo $receptor1; ?></strong></td>
</tr>
</table>
<table width="250" height="0" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="271" align="left" valign="top" class="texto2"><input name="in" type="hidden" value="<?php $clid=1; echo $clid; ?>">
</td>
</tr>
</table>
<table width="250" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="middle" class="opcion">Nombre<br>
<input name="Nombre" type="text" id="Nombre" size="40" style="width:240px" class="formularios"></td>
</tr>
</table>
<table width="250" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="240" align="left" valign="middle" class="opcion">E-mail<br>
<input name="Email" type="text" id="Email" size="40" style="width:240px" class="formularios"></td>
</tr>
<tr>
<td width="240" align="left" valign="middle" class="opcion">Tel&eacute;fono<br>
<input name="telefono" type="text" id="telefono" size="40" style="width:240px" class="formularios"></td>
</tr>
</table>
<table width="250" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="middle" class="opcion">Consulta<br>
<textarea name="Consulta" cols="40" rows="5" id="textarea" style="width:240px" class="formularios"></textarea></td>
</tr>
</table>
<table width="250" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><input type="submit" name="Submit" value="Enviar" class="bt-form">
<input type="reset" name="Submit2" value="Borrar" class="bt-form">
</form>
</td>
</tr>
</table></td>
</tr>
</table>
<? }
?>

Ha, y me tome el atrevimiento de agregarte el campo del telefono, si quieres almacenarlo entonces este campo debe estar tambien en la tabla de visitantes y en el insert into le agregas esa variable, o si no pues quita lo que te puse y listo, espero ya ahora si te funcione.
__________________
Suerte.
_______________________________
"La vida es el principio de la muerte".
  #6 (permalink)  
Antiguo 02/04/2007, 09:43
 
Fecha de Ingreso: agosto-2004
Mensajes: 113
Antigüedad: 19 años, 7 meses
Puntos: 0
Re: formMail en la una misma pagina (2)

Hola El Patrón, gracias por la respuesta, funciona de maravillas. Le hice unos cambios y quedo asi.
Código PHP:
<?php /*empieza formulario*/
if($Submit){
@
$Nombre $_POST['Nombre'];
@
$Email $_POST['Email'];
@
$Consulta $_POST['Consulta'];
@
$clid $_POST['clid'];

mysql_query("update clientes set consultas=consultas+1 where clid='$clid'");


$result mysql_query("select vid from visitantes where mail = '$Email'");
$results mysql_num_rows($result);
if (
$results>0) {
        
mysql_query("update visitantes set contactos=contactos+1 where mail='$Email'");
    } else {
        
mysql_query("insert into visitantes values (NULL, '$Nombre', '$Email', 1)");
}

$result mysql_query("select mail, cliente from clientes where clid = '$clid'");
list(
$receptor) = mysql_fetch_array($result);

$header "From: $Nombre <$Email>\n";
$header .= "To: ".$receptor."\n";
$header .= "X-Mailer: PHP4\n"//mailer
$header .= "MIME-Version: 1.0\n";
$header .= "Reply-to: ".$Email."\n";
$header .= "Content-type: text/html; charset=iso-8859-1\n";
//************************************************************************/


$cuerpo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html><head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>

</head>
<body>
     <tr>
    <td bgcolor='#fea941' align='left' valign='top'>" 
$Nombre " env&iacute;a una consulta desde MiSitio.com.ar
    <br>Nombre: " 
$Nombre "
    <br><a href='mailto: " 
$Email "'> " $Email "</a>
    <br>Consulta: " 
$Consulta "    
    </td></tr></body></html>"
;

mail($receptor,'Visitante de MiSitio.com.ar',$cuerpo,$header);
echo 
"<table width='383' height='200' border='0' cellpadding='0' cellspacing='0'>
  <tr>
    <td align='center' valign='middle'>Su consulta ha sido enviada, gracias<br>
      <a href='ver.php?clid=$clid&amp;cliente=$cliente' class='listado'>volver</a></td>
  </tr>
</table>"
;
}
else{ 
//se manda// ?>
                                          <form action="ver.php?clid=<? echo $clid?>&amp;cliente=<? echo $cliente?>" method="post" name="form1" target="_self" onSubmit="MM_validateForm('Nombre','','R','Email','','RisEmail','consulta','','R');return document.MM_returnValue">
                    <table width="383" height="250" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                  <td align="left" valign="top">
<table width="383" height="20" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FEA941">
                            <tr>
                                                      <td align="left" valign="middle" bgcolor="#FEA941" class="fecha">Enviar 
                                                        una consulta a<strong>&nbsp;<?php echo $cliente?></strong></td>
                      </tr>
                    </table>
                          <table width="360" height="0" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                        <td width="271" align="left" valign="top" class="texto2"><input name="clid" type="hidden" value="<?php echo $clid?>"> 
                        </td>
                      </tr>
                    </table>
                          <table width="360" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td align="left" valign="middle" class="opcion">Nombre<br>
                          <input name="Nombre" type="text" id="Nombre2" size="40" style="width:360px" class="formularios"></td>
                      </tr>
                    </table>
                          <table width="360" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td width="240" align="left" valign="middle" class="opcion">E-mail<br>
                          <input name="Email" type="text" id="Email2" size="40" style="width:360px" class="formularios"></td>
                      </tr>
                    </table>
                          <table width="360" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td align="left" valign="middle" class="opcion">Consulta<br>
                          <textarea name="Consulta" cols="40" rows="5" id="textarea" style="width:360px" class="formularios"></textarea></td>
                      </tr>
                    </table>
                          <table width="360" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                        <td><input type="submit" name="Submit" value="Enviar" class="bt-form"> 
                          <input type="reset" name="Submit2" value="Borrar" class="bt-form"></td>
                      </tr>
                    </table></td>
                </tr>
              </table>
            </form>
                                          <? }
//fin del formulario//?>
Lo pongo por si alguien lo necesita.
Muchas gracias
Saludos
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:50.