Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/10/2012, 07:30
kesiame88
 
Fecha de Ingreso: octubre-2012
Mensajes: 12
Antigüedad: 11 años, 7 meses
Puntos: 0
problema al agregar codigo php en html

Hola a todos el problema que tengo es que cuando quiero realizar todo el diseño de un mensaje para enviarlo a un correo electronico quiero que vaya cierta informacion que guarde en mi BD, entonces al diseñar el html estoy combinandolo con codigo php pero no me lee el codigo php no se que estare haciendo mal, el codigo es el siguiente:

<?
function EnviarCorreo($nombre, $apellido, $identificacion, $tel, $dir, $correo){

//Asunto
$titulo = 'Solicitud';
//Mensaje
$mensaje = '
<html>
<head>
<title>Solicitud</title>
<style type="text/css">
.auto-style1 {
text-align: center;
font: large serif;
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
.auto-style2 {
text-align: left;
}
</style>
</head>
<body>
<div id="Header">
<table height="98" border="0" style="width: 1087px"> <tr>
<td style="width: 86px"><img alt="" src="imagen.jpg" height="98" width="104">
</td>
<td class="auto-style1" style="width: 788px">Solicitud</td>
</tr>
</table>
</div>

<div id="body">
&nbsp;<p>Hola,'<? echo $nombre; ?'.'>'</p>
<p>A continuacion presento su informacion:</p>
<table>
<tr>
<td style="width: 145px"><strong>Nombre:</strong></td><td>'<? echo $nombre $apellido;?'.'>'</td>
</tr>
<tr>
<td style="width: 145px"><strong>No. de Identificacion:</strong></td><td>'<? echo $identificacion;?'.'>'</td>
</tr>
<tr>
<td style="width: 145px"><strong>Telefono:</strong></td><td>'<? echo $tel;?'.'>'</td>
</tr>
<tr>
<td style="width: 145px"><strong>Direccion:</strong></td><td>'<? echo $dir;?'.'>'</td>
</tr>
<tr>
<td style="width: 145px"><strong>Correo electronico:</strong></td><td>'<? echo $correo;?'.'>'</td>
</tr>
</table>
</div>
<hr width="1087">
<div id="footer">pie de pagina</div>
</body>
</html>
';

..................aqui hay mas codigo php
?>