aqui mis codigos
insertar.php
Código HTML:
<form action="agregar.denuncia.php" method="post"> <b>ID Denunciante:</b><br> <input type="text" size="60" name="iddenunciante"><br> <br> <b>ID Post:</b><br> <input type="text" size="60" name="idpost"><br> <br> <b>Razon:</b><br> <input type="text" size="60" name="razon"><br> <br> <b>Mensaje:</b><br> <input type="text" size="60" name="mensaje"><br> <input type="submit" class="button" value="Denunciar"><br> </form>
Código PHP:
<?php
$link = mysql_connect("***","****","****");
mysql_select_db("****",$link);
mysql_query("INSERT INTO denuncia (iddenunciante, idpost, razon, mensaje) VALUES ('{$_POST['iddenunciante']}', '{$_POST['idpost']}', '{$_POST['razon']}', '{$_POST['mensaje']}', now())",$link);
echo '<center>
<div id="miniabout" class="container400">
<div align="center">
<br />
<b>La denuncia a sido agregada.</b> <br />
<br />
</div>
</div></center> ';
?>