![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
23/09/2010, 06:51
|
![Avatar de 00israel](http://static.forosdelweb.com/customavatars/avatar3020_1.gif) | | | Fecha de Ingreso: enero-2002 Ubicación: madrid
Mensajes: 636
Antigüedad: 23 años Puntos: 5 | |
pagina despues de enviar formulario... tengo una pagina en php de un envio de formulario:
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Documento sin título</title>
</head>
<body>
<?
$nombre = $_POST['nombre'];
$empresa = $_POST['empresa'];
$telefono = $_POST['telefono'];
$mail = $_POST['mail'];
$header = 'From: ' . $mail . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";
$mensaje = "Este mensaje fue enviado por " . $nombre . ", de la empresa " . $empresa . " \r\n\r\n";
$mensaje .= "Su e-mail es: " . $mail . ", y su telefono es " . $telefono . " \r\n\r\n";
$mensaje .= "Mensaje: " . $_POST['mensaje'] . " \r\n\r\n";
$mensaje .= "Enviado el " . date('d/m/Y', time());
$para = '[email protected]';
$asunto = 'Envio desde...';
mail($para, $asunto, utf8_decode($mensaje), $header);
?></body>
</html>
y una pagina en html donde me gustaria que se redireccionara una vez que el formulario se ha enviado:
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>• Los Cargos en el Poder •</title>
<style type="text/css">
<!--
body {
background-image: url(imagenes/fondo.jpg);
margin-top: 0px;
height:100%;
background-repeat: no-repeat;
}
-->
</style>
<link href="formas&fondo.css" rel="stylesheet" type="text/css" />
<link href="textos.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a:link {
color: #666666;
}
a:visited {
color: #666666;
}
a:hover {
color: #666666;
}
a:active {
color: #666666;
}
-->
</style></head>
<body>
<table width="691" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><table width="691" border="0" cellpadding="0" cellspacing="0" class="linea-negra-fila-superior">
<tr>
<td><img src="imagenes/texto-logo.png" width="403" height="207" border="0" usemap="#Map2" /></td>
<td valign="bottom"><img src="imagenes/botones-menu.png" width="288" height="127" border="0" usemap="#Map" /></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="691" border="0" cellpadding="0" cellspacing="0" class="lineas-horizontales">
<tr>
<td width="376" align="right" valign="top" class="linea-administra"><img src="imagenes/titular-contacto-pedidos.png" width="320" height="138" /></td>
<td rowspan="2" class="texto-gracias">Su envío se ha realizado correctamente<br />
pulse para <a href="contacto-prueba-2.html">volver</a>.<br />
<br />
<br /></td>
</tr>
<tr>
<td align="right" valign="top" class="linea-administra"> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" class="texto-inferior">En los 6 tomos usted podrá tener a mano, de una forma sencilla y ágil más de 24500 nombres, cargos, direcciones, teléfonos, fax, emails y otros datos que le permitirán saber puntualmente qué personas ocupan los puestos claves en la estructura.. </td>
</tr>
<tr>
<td width="209" class="texto-base-izquierdo"> </td>
<td width="482" class="texto-base-derecho">2010 © Todos los derechos reservados.</td>
</tr>
</table>
<map name="Map" id="Map"><area shape="rect" coords="102,10,291,29" href="administraciones.html" />
<area shape="rect" coords="78,35,302,74" href="que son.html" />
<area shape="rect" coords="125,80,289,98" href="quienes son.html" />
<area shape="rect" coords="103,103,289,117" href="contacto.html" />
</map>
<map name="Map2" id="Map2"><area shape="rect" coords="2,110,383,212" href="index.html" />
</map></body>
</html>
como adapto una a otra. Es decir como le doy la apariencia que tengo en el html al php?
perdonar por no tener mucha idea de php |