Ver Mensaje Individual
  #7 (permalink)  
Antiguo 10/08/2009, 13:57
Avatar de urgido
urgido
 
Fecha de Ingreso: febrero-2005
Mensajes: 2.351
Antigüedad: 19 años, 1 mes
Puntos: 25
Respuesta: recargar la misma pagina

ESPERO QUE TE SIRVA, DE OTRA FORMA POSTE AQUI TU ERROR.

Código HTML:
<form action="mas.php" method=post>
          <table width="543" border="0" class="tablas_form_producto">
            <tr>
              <td>&nbsp;</td>
              <td><div align="right" class="tex_14_rojo">Datos del comercio</div></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td width="35">&nbsp;</td>
              <td width="212" class="tex_14_negro"><div align="right">Nombre:</div></td>
              <td width="240"><input type="text" name="nombre" size="40" /></td>
              <td width="38">&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td class="tex_14_negro"><div align="right">Provincia:</div></td>
              <td><select name="comunidad" id="comunidad">
                <?php
do {  
?>
                <option value="<?php echo $row_provincia['comunidad']?>"><?php echo $row_provincia['comunidad']?></option>
                <?php
} while ($row_provincia = mysql_fetch_assoc($provincia));
  $rows = mysql_num_rows($provincia);
  if($rows > 0) {
      mysql_data_seek($provincia, 0);
      $row_provincia = mysql_fetch_assoc($provincia);
  }
?>
                            </select></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td class="tex_14_negro"><div align="right">Teléfono:</div></td>
              <td><input name="telefono" type="text" id="telefono" size="15" /></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td class="tex_14_negro"><div align="right">Precio del articulo:</div></td>
              <td><input name="precio" type="text" id="precio" size="15" /></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td class="tex_14_negro"><div align="right">Web / e-mail:</div></td>
              <td><input type="text" name="email" size="40" /></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td class="tex_14_negro">Comentario:</td>
              <td><textarea name="coment" cols="32" rows="6"></textarea></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td><input name="articulo" type="hidden" id="articulo" value="<?php echo $row_articulos['nombre']; ?>" />
              <input name="identificador" type="hidden" id="identificador" value="<?php echo $row_articulos['id_producto']; ?>" />
              <input name="usuario" type="hidden" id="usuario" value="<?php echo $row_usuario['usuario']; ?>" />
              <input name="action" type="hidden" id="action" value="send" />
              <input name="id" type="hidden" id="id" value="<?php echo $row_articulos['id_producto']; ?>" />
              <input type="text" value="<?php echo $row_articulos['id_producto']; ?>" name="articuloid" id="articuloid" style="display:none">
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><input type=submit class="boton_form_cata" value="¡¡ Revisar este articulo!" /></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
          </table>
          <p><br>
          </p>
        </form>
 <?PHP
      if (isset($_POST['action'])) {
 
      $dest="[email protected],".$_POST['usuario'].",".$_POST['usuario']; 
      $head = "From: Dto comercial <[email protected]>";
 
       // Ahora creamos el cuerpo del mensaje
     $msg = "------------------------------- \n";
     $msg.= "         Gracias por colaborar           \n";
   $msg.= "------------------------------- \n";
    $msg.= "Nombre:   ".$_POST['nombre']."\n";
     $msg.= "Provincia:  ".$_POST['comunidad']."\n";
    $msg.= "EMAIL:    ".$_POST['email']."\n";
      $msg.= "Telefono: ".$_POST['telefono']."\n";
      $msg.= "Precio:    ".$_POST['precio']."\n";
      $msg.= "Articulo:    ".$_POST['articulo']."\n";
      $msg.= "identificador:    ".$_POST['identificador']."\n";
       $msg.= "HORA:     ".date("h:i:s a ")."\n";
      $msg.= "FECHA:    ".date("D, d M Y")."\n";
      $msg.= "IP:       ".$REMOTE_ADDR."\n";
      $msg.= "------------------------------- \n\n";
       $msg.= $_POST['comentarios']."\n\n";
       $msg.= "------------------------------- \n";
       // Finalmente enviamos el mensaj
       if (mail($dest, "Lo he visto mas barato", $msg, $head)) {
        $aviso = "Su mensaje fue enviado.";
		echo '<meta http-equiv="refresh" content="0;URL=./mas.php?articulo='.$_POST['articuloid'].'">'
       } else {
        $aviso = "Error de envío.";
       }
      }
?> 
__________________
Hospedaje Web al mejor costo!