eghao Postado Maio 19, 2012 Denunciar Share Postado Maio 19, 2012 ola ferasgostaria de saber como fazer os comentarios aparecerem com a data do dia junto os 2 script estao abaixo, obrigado<?####################################################### ## ## Desenvolvido por: papito - Erickson - ## erickson@laranjaldojari.net ## MSN: papito@tvsom.com.br ## ## #######################################################?><?php $nome = $_POST["nome"]; $email = $_POST["email"]; $mensagem = $_POST["mensagem"]; $msg = "<br><font color=#000000> <b>Nome: </b>$nome</font><br>"; $msg .= "<font color=#000000><b>E-mail: </b>$email</font><br>"; $msg .= "<font color=#000000><b>Mensagem:</b> $mensagem</font><br>"; $msg .= "<br>"; $msg .= "<font color=#000000>............................................................................................</font>";<b:if cond='data:post.dateHeader'><span class='date-header'><data:post.dateHeader/></span></b:if>/font> $ponteiro = fopen ("mensagens.txt", "a"); fwrite($ponteiro, "$msg\n\n"); fclose ($ponteiro); ?><br><br><br><br><BR><font face="arial"><center><h4> Sua mensagem foi enviada com sucesso!<BR>Agradecemos sua visita. </h3><p><a href="/comentario222.php"> Voltar </a> o outro é:<?####################################################### ## ## Desenvolvido por: papito - Erickson - ## erickson@laranjaldojari.net ## MSN: papito@tvsom.com.br ## ## #######################################################?><script src="valida.js" type=text/javascript></SCRIPT><FORM name=email2 onsubmit="return checkemail()" action=enviar_msg.php?a=confirma method=post><TABLE style="WIDTH: 471px; HEIGHT: 200px" cellSpacing=0 cellPadding=0 width=471 align=center border=0> <TBODY> <TR> <TD width=104> <P align=center><FONT face=Arial color=#000000 size=1>Nome:</FONT></P></TD> <TD width=369><INPUT id=nome style="BORDER-RIGHT: #00008b 1px solid; BORDER-TOP: #00008b 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #00008b 1px solid; BORDER-BOTTOM: #00008b 1px solid; FONT-FAMILY: verdana" size=30 name=nome> </TD></TR> <TR> <TD> <P align=left><FONT color=#990099> </FONT><FONT face=Arial color=#000000 size=1>E-mail:</FONT></P></TD> <TD><INPUT id=email style="BORDER-RIGHT: #00008b 1px solid; BORDER-TOP: #00008b 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #00008b 1px solid; BORDER-BOTTOM: #00008b 1px solid; FONT-FAMILY: verdana" size=30 name=email> </TD></TR> <TR> <TD vAlign=top><FONT color=#990099> </FONT><FONT face=Arial color=#000000 size=1>Mensagem:</FONT></TD> <TD><TEXTAREA id=mensagem style="BORDER-RIGHT: #00008b 1px solid; BORDER-TOP: #00008b 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #00008b 1px solid; WIDTH: 228px; BORDER-BOTTOM: #00008b 1px solid; FONT-FAMILY: verdana; HEIGHT: 134px" name=mensagem rows=10 cols=34></TEXTAREA> </TD></TR> <TR> <TD vAlign=top><INPUT type=hidden value=ok name=send_status></TD> <TD><INPUT style="BORDER-RIGHT: #00008b 1px solid; BORDER-TOP: #00008b 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #00008b 1px solid; WIDTH: 117px; CURSOR: hand; BORDER-BOTTOM: #00008b 1px solid; FONT-FAMILY: verdana; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff" type=submit size=15 value="Enviar Mensagem" name=submit> <INPUT style="BORDER-RIGHT: #00008b 1px solid; BORDER-TOP: #00008b 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #00008b 1px solid; WIDTH: 108px; CURSOR: hand; BORDER-BOTTOM: #00008b 1px solid; FONT-FAMILY: verdana; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff" type=reset value="Limpar tudo"> </TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width=449 align=center border=0> <TBODY> <TR> <TD> </TD> <TD> </TD></TR> <TR> <TD><BR> <CENTER><FONT color=blue><FONT face=arial>Veja as mensagem abaixo:</FONT></CENTER><BR><?php include "mensagens.txt"; ?></FONT></TD> <TD> </TD></TR></TBODY></TABLE><DIV align=left><BR></DIV></FORM></CENTER><CENTER> </CENTER><CENTER> </CENTER></TD><TD width="150" valign="top"></BODY></HTML> Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 JaguA Postado Maio 19, 2012 Denunciar Share Postado Maio 19, 2012 Amigo aqui é HTML/CSS e não PHP.Coloque seu código dentro do BBCODE CODEEXEMPLOAssim: [code] Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
eghao
ola feras
gostaria de saber como fazer os comentarios aparecerem com a data do dia junto os 2 script estao abaixo, obrigado
<?
######################################################
# #
# #
# Desenvolvido por: papito - Erickson - #
# erickson@laranjaldojari.net #
# MSN: papito@tvsom.com.br #
# #
# #
######################################################
?>
<?php
$nome = $_POST["nome"];
$email = $_POST["email"];
$mensagem = $_POST["mensagem"];
$msg = "<br><font color=#000000> <b>Nome:
</b>$nome</font><br>";
$msg .= "<font color=#000000><b>E-mail:
</b>$email</font><br>";
$msg .= "<font color=#000000><b>Mensagem:</b>
$mensagem</font><br>";
$msg .= "<br>";
$msg .= "<font
color=#000000>.................................................
...........................................</font>";
<b:if cond='data:post.dateHeader'>
<span class='date-header'><data:post.dateHeader/></span>
</b:if>/font>
$ponteiro = fopen ("mensagens.txt", "a");
fwrite($ponteiro, "$msg\n\n");
fclose ($ponteiro); ?>
<br><br><br><br><BR>
<font face="arial"><center><h4> Sua mensagem foi enviada com
sucesso!
<BR>Agradecemos sua visita. </h3><p>
<a href="/comentario222.php"> Voltar </a>
o outro é:
<?
######################################################
# #
# #
# Desenvolvido por: papito - Erickson - #
# erickson@laranjaldojari.net #
# MSN: papito@tvsom.com.br #
# #
# #
######################################################
?>
<script src="valida.js" type=text/javascript></SCRIPT>
<FORM name=email2 onsubmit="return checkemail()" action=enviar_msg.php?a=confirma method=post>
<TABLE style="WIDTH: 471px; HEIGHT: 200px" cellSpacing=0 cellPadding=0 width=471
align=center border=0>
<TBODY>
<TR>
<TD width=104>
<P align=center><FONT face=Arial color=#000000 size=1>Nome:</FONT></P></TD>
<TD width=369><INPUT id=nome
style="BORDER-RIGHT: #00008b 1px solid; BORDER-TOP: #00008b 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #00008b 1px solid; BORDER-BOTTOM: #00008b 1px solid; FONT-FAMILY: verdana"
size=30 name=nome> </TD></TR>
<TR>
<TD>
<P align=left><FONT
color=#990099> </FONT><FONT
face=Arial color=#000000 size=1>E-mail:</FONT></P></TD>
<TD><INPUT id=email
style="BORDER-RIGHT: #00008b 1px solid; BORDER-TOP: #00008b 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #00008b 1px solid; BORDER-BOTTOM: #00008b 1px solid; FONT-FAMILY: verdana"
size=30 name=email> </TD></TR>
<TR>
<TD vAlign=top><FONT color=#990099> </FONT><FONT face=Arial
color=#000000 size=1>Mensagem:</FONT></TD>
<TD><TEXTAREA id=mensagem style="BORDER-RIGHT: #00008b 1px solid; BORDER-TOP: #00008b 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #00008b 1px solid; WIDTH: 228px; BORDER-BOTTOM: #00008b 1px solid; FONT-FAMILY: verdana; HEIGHT: 134px" name=mensagem rows=10 cols=34></TEXTAREA>
</TD></TR>
<TR>
<TD vAlign=top><INPUT type=hidden value=ok name=send_status></TD>
<TD><INPUT style="BORDER-RIGHT: #00008b 1px solid; BORDER-TOP: #00008b 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #00008b 1px solid; WIDTH: 117px; CURSOR: hand; BORDER-BOTTOM: #00008b 1px solid; FONT-FAMILY: verdana; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff" type=submit size=15 value="Enviar Mensagem" name=submit>
<INPUT style="BORDER-RIGHT: #00008b 1px solid; BORDER-TOP: #00008b 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #00008b 1px solid; WIDTH: 108px; CURSOR: hand; BORDER-BOTTOM: #00008b 1px solid; FONT-FAMILY: verdana; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff" type=reset value="Limpar tudo">
</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=449 align=center border=0>
<TBODY>
<TR>
<TD> </TD>
<TD> </TD></TR>
<TR>
<TD><BR>
<CENTER><FONT color=blue><FONT face=arial>Veja as mensagem
abaixo:</FONT></CENTER><BR><?php include "mensagens.txt"; ?></FONT></TD>
<TD> </TD></TR></TBODY></TABLE>
<DIV align=left><BR></DIV></FORM></CENTER>
<CENTER> </CENTER>
<CENTER> </CENTER></TD><TD width="150" valign="top"></BODY></HTML>
Link para o comentário
Compartilhar em outros sites
1 resposta a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.