ALGO PARECIDO AL CONTADOR KE UTILIZA LOS SERVICIOS DE CORREOS, PARA REGISTRAR LOS MENSAJES ENTRANTES.
EJEMPLO: Bandeja de entrada (1)
La tabla se llama correo y esta posee 5 campos
Código PHP:
<table width="650" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<form name="form2" method="post" action="CorreoProcesar.php">
<tr>
<td width="91" height="21"></td>
<td width="45"> </td>
<td width="313"></td>
<td width="64"></td>
<td width="137"></td>
</tr>
<tr>
<td height="12"></td>
<td valign="top"><strong>Para:</strong></td>
<td colspan="2" rowspan="3" valign="top"> <input name="Para" type="text" id="Para" onBlur="MM_validateForm('Para','','RisEmail');return document.MM_returnValue" size="50" maxlength="30">
</td>
<td></td>
</tr>
<tr>
<td height="4"></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="1"></td>
<td rowspan="2" valign="top"><strong>De:</strong></td>
<td></td>
</tr>
<tr>
<td height="11"></td>
<td colspan="2" rowspan="3" valign="top"> <input name="De" type="text" id="De" onBlur="MM_validateForm('De','','RisEmail');return document.MM_returnValue" size="50" maxlength="30">
</td>
<td></td>
</tr>
<tr>
<td height="5"></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="1"></td>
<td rowspan="2" valign="top"><strong>Asunto:</strong></td>
<td></td>
</tr>
<tr>
<td height="16"></td>
<td colspan="2" rowspan="2" valign="top"> <input name="Asunto" type="text" id="Asunto" onBlur="MM_validateForm('Asunto','','R');return document.MM_returnValue" size="50" maxlength="60">
</td>
<td></td>
</tr>
<tr>
<td height="1"></td>
<td rowspan="2" valign="top"><p><strong>Mensaje:</strong></p></td>
<td></td>
</tr>
<tr>
<td height="11"></td>
<td colspan="2" rowspan="3" valign="top"> <textarea name="Mensaje" cols="70" rows="10" id="Mensaje" onChange="MM_validateForm('Mensaje','','R');return document.MM_returnValue"></textarea>
</td>
<td></td>
</tr>
<tr>
<td height="12"></td>
<td valign="top"><font color="#FF0000"><strong>Claro</strong></font></td>
<td></td>
</tr>
<tr>
<td height="118"></td>
<td> </td>
<td></td>
</tr>
<tr>
<td height="21"></td>
<td></td>
<td> </td>
<td> </td>
<td></td>
</tr>
<tr>
<td height="21"></td>
<td></td>
<td></td>
<td valign="top"> <input name="Enviar" type="submit" id="Enviar" onClick="MM_validateForm('Para','','RisEmail','De','','RisEmail','Asunto','','R','Mensaje','','R');return document.MM_returnValue" value="Enviar">
</td>
<td></td>
</tr>
<tr>
<td height="3"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</form>
</table>
Código PHP:
<?php
include("conex.php");
$link=Conectarse();
$Id_Correo=$_POST['Id_Correo'];
$Para=$_POST['Para'];
$De=$_POST['De'];
$Asunto=$_POST['Asunto'];
$Mensaje=$_POST['Mensaje'];
mysql_query("INSERT INTO Correo ( Para, De, Asunto, Mensaje)
values ('$Para', '$De', '$Asunto', '$Mensaje')",$link);
header('Location: Correo.php');
?>