Ver Mensaje Individual
  #12 (permalink)  
Antiguo 02/09/2006, 13:56
Avatar de clara2004
clara2004
 
Fecha de Ingreso: junio-2004
Ubicación: Argentina, capital federal barrio de Palermo
Mensajes: 160
Antigüedad: 19 años, 10 meses
Puntos: 0
rock_blues.NET :

copie tu codigo gracias,
pero no se ve.
http://www.angelfire.com/pq/coret/es.../contacto.html

puede ser que angelfire no sprte php.
porque arme los 2 archivos que me recomendaste

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Pagina nueva 1</title>
<style>
<!--
.style8 {
color: #6C6C6C;
font-size: 12px;
font-family: tahoma;
}
.style1 {
color: #6C6C6C;
font-family: tahoma;
font-size: 11px;
font-weight: bold;
}
-->
</style>
</head>

<body>
<table width="50%" border="0" align="center" cellpadding="0" cellspacing="0" id="table1">
<tr>
<td align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="table2">
<form action="consulta.php" method="post">
<tr>
<td height="14" colspan="2" align="left" valign="top" class="style1">Nombre y Apellido:</td></tr>
<tr>
<td height="24" colspan="2" align="left" valign="top"><input type="text" name="nombres" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
</tr>
<tr>
<tr>
<td height="14" colspan="2" align="left" valign="top" class="style1">Nacionalidad</td>
</tr>
<tr>
<td height="24" colspan="2" align="left" valign="top"><input type="text" name="nacion" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
</tr>
<tr>
<td height="14" colspan="2" align="left" valign="top" class="style1">Edad</td>
</tr>
<tr>
<td height="24" colspan="2" align="left" valign="top"><input type="text" name="edad" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
</tr>
<tr>
<td height="14" colspan="2" align="left" valign="top" class="style1">Motivo del Viaje</td>
</tr>
<tr>
<td height="24" colspan="2" align="left" valign="top"><input type="text" name="motivo" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
</tr>
<tr>

<td height="14" colspan="2" align="left" valign="top" class="style1">Tipo de Estudio</td>
</tr>
<tr>
<td height="24" colspan="2" align="left" valign="top"><input type="text" name="estudio" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
</tr>
<tr>
<td height="14" colspan="2" align="left" valign="top" class="style1">Lugar de Estudio</td>
</tr>
<tr>
<td height="24" colspan="2" align="left" valign="top"><input type="text" name="estudlugar" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
</tr>
<td height="14" colspan="2" align="left" valign="top" class="style1">E-mail:</td>
</tr>
<tr>
<td height="24" colspan="2" align="left" valign="top"><input type="text" name="email" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
</tr>
<tr>
<td height="14" colspan="2" align="left" valign="top" class="style1">Comentarios:</td>
</tr>
<tr>
<td colspan="2" align="left" valign="top"><textarea name="comentario" style="height:61px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD; overflow:auto " rows="1" cols="20"></textarea></td>
</tr>
<tr>
<td width="51" height="37" align="left" valign="top">
<p align="center"><FONT face=Arial color=#000000 size=1>

<INPUT type=reset value=Borrar name=Submit>

</FONT></td>
<td width="551" align="left" valign="top"><FONT face=Arial color=#000000 size=1><INPUT type=submit value=Enviar name=Submit2>

</FONT></td>
</tr>
</table>
</div></td>
</tr>
</table>

</body>

</html>


esta como contacto.html


y la otra


<?php

$mail='[email protected]';


$nombres = $_POST['nombres'];
$nacion = $_POST['nacion'];
$edad = $_POST['edad'];
$motivo = $_POST['motivo'];
$estudio = $_POST['estudio'];
$estudlugar = $_POST['estudlugar'];
$email = $_POST['email'];
$msg = $_POST['msg'];

$thank="index.html";

$message = "
nombres:".$nombres."
nacion:".$nacion."
edad:".$edad."
motivo:".$motivo."
estudio:".$estudio."
estudlugar:".$estudlugar."
email:".$email."
msg:".$msg."";

if (mail($mail,"consulta",$message))
Header ("Location: $thank");

?>