Ver Mensaje Individual
  #8 (permalink)  
Antiguo 25/02/2012, 08:56
pablomarano
 
Fecha de Ingreso: junio-2008
Mensajes: 3
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Ayuda con CAPTCHA y Formulario por favor!!

Hola! necesito poner un captcha en este formulario:

---------------------
<?PHP
$number=1;
include("cabecera.htm");?></center><div align="center"> <table border="0" width="900" cellspacing="1" cellpadding="0"

bgcolor="#FFFFFF"> <tr> <td height="500" valign="top" bordercolor="#C0C0C0">

<table border="0" width="100%" cellspacing="1" cellpadding="0" bgcolor="#E4E4E4"> <tr>


<td bgcolor="#FFFFFF" rowspan="2" valign="top" width="180"> <p style="margin-top: 0;

margin-bottom: 0">
<font size="1"><?PHP
include("categorias.htm");?>
</br></font></td>
<td bgcolor="#FFFFFF" valign="top" width="540">
<h1>Publicar Aviso</h1>
<?
$numero = rand(50,100);
?>
<?php
if (isset($_POST['submit'])) {
$fp = fopen("clasificados/data/unapproved_news.txt","a");
fwrite($fp, $numero . "|usuario|" . $_POST['titulo'] . "|" . $_POST['descripcion'] . " |Email: " . $_POST['email'] . "</br>Telefono: " . $_POST['telefono'] . "</br>Precio: $" . $_POST['precio'] . "||18||" . PHP_EOL);
fclose($fp);
die;
}
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
Titulo: <input type="text" name="titulo" maxlength="60"/></br>
Descripción: <input type="text" name="descripcion" maxlength="200"/></br>
Email: <input type="text" name="email" maxlength="20"/></br>
Telefono: <input type="text" name="telefono" maxlength="20"/></br>
Precio: <input type="text" name="precio" maxlength="10"/></br>

<input type="submit" name="submit" /></br>
Al Hacer Clic en "enviar" quedará la pagina en blanco
</form>
-----------------------------
alguien sabe como? gracias!!