Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/05/2013, 13:09
marianomartelli
 
Fecha de Ingreso: agosto-2012
Ubicación: Barcelona
Mensajes: 243
Antigüedad: 11 años, 9 meses
Puntos: 1
Error Forbidden You don't have permission to access /sants/< on this server.

Hola,

A ver si me pueden hechar un cable.
Al ejecutar mi programa que sirve de encuesta me sale el siguiente error:

Forbidden
You don't have permission to access /sants/< on this server.

Adjunto el programa a ver si alguien me puede ayudar

Código PHP:
Ver original
  1. include ('conexion.php');
  2. $pregunta = "SELECT * FROM encuesta";
  3.  
  4. ?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html lang="en">
  7.     <head>
  8.         <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  9.         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11.         <title>Locales</title>
  12.         <meta name="description" content="Circle Hover Effects with CSS Transitions" />
  13.         <meta name="keywords" content="circle, border-radius, hover, css3, transition, image, thumbnail, effect, 3d" />
  14.         <link rel="shortcut icon" href="../favicon.ico">
  15.         <link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
  16.         <link rel="stylesheet" type="text/css" href="css/demo.css" />
  17.         <link rel="stylesheet" type="text/css" href="css/common.css" />
  18.         <link rel="stylesheet" type="text/css" href="css/style7.css" />
  19.         <link media="screen" type="text/css" rel="stylesheet" href="css/boton.css">
  20.         <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,700' rel='stylesheet' type='text/css' />
  21.         <script type="text/javascript" src="js/modernizr.custom.79639.js"></script>
  22.         <!--[if lte IE 8]><style>.main{display:none;} .support-note .note-ie{display:block;}</style><![endif]-->
  23.     </head>
  24.     <body>
  25.         <?php include("menuprincipal.php");?>
  26.            
  27.             <header>
  28.            
  29.                
  30.             <h1> Seleccionamos los mejores locales para ti.... </h1>
  31.                
  32.             </header>
  33.            
  34.             <section class="main">
  35.            
  36.                 <ul class="ch-grid">
  37.                     <li>
  38.                         <div class="ch-item">              
  39.                             <div class="ch-info">
  40.                                 <div class="ch-info-front ch-img-1"></div>
  41.                                 <div class="ch-info-back">
  42.                                     <h3>Charcuteria y Carniceria</h3>
  43.                                     <p> Vota por tu charcuteria o carniceria preferida<a href="">Ver mas</a></p>
  44.                                 </div> 
  45.                             </div>
  46.                         </div>
  47.                     </li>
  48.                     <li>
  49.                         <div class="ch-item">
  50.                             <div class="ch-info">
  51.                                 <div class="ch-info-front ch-img-2"></div>
  52.                                 <div class="ch-info-back">
  53.                                     <h3>Pizzeria</h3>
  54.                                     <p>Vota por tu pizzeria favorita<a href="">Ver mas</a></p>
  55.                                 </div>
  56.                             </div>
  57.                         </div>
  58.                     </li>
  59.                     <li>
  60.                         <div class="ch-item">
  61.                             <div class="ch-info">
  62.                                 <div class="ch-info-front ch-img-3"></div>
  63.                                 <div class="ch-info-back">
  64.                                     <h3>Restaurant</h3>
  65.                                     <p>Vota por tu restaurant favorito <a href="">Ver mas</a></p>
  66.                                 </div>
  67.                             </div>
  68.                         </div>
  69.                     </li>
  70.                 </ul>
  71.                
  72.             </section>
  73.         </div>
  74.        
  75.        
  76. <div class="contenedor">
  77.  
  78.          <h4 style="font-size:24px;">Este mes seleccionamos el mejor de estas 3 categorías!!!</h4>
  79. <?php
  80.       if($_POST){
  81.       //INSERTO EN LA BASE DE DATOS
  82.       //VERIFICO LOS DATOS
  83.       if ($_POST("CATEGORIA")==""){
  84.           echo "No se ha recibido la categoria";
  85.         }elseif($_POST("local")==""){
  86.             echo "No se ha recibido el nombre del local";
  87.           }elseif($_POST("local")=="ORDEN"){
  88.               echo "No se ha recibido el ORDEN";
  89.             }elseif($_POST("local")=="ATENCION"){
  90.                echo "No se ha recibido la atencion";
  91.                }elseif($_POST("local")=="PRODUCTO"){
  92.                    echo "No se ha recibido la producto";
  93.                  }elseif($_POST("local")=="Datos_local"){
  94.                     echo "No se ha recibido la producto";  
  95.                    }elseif($_POST("local")=="email"){
  96.                        echo "No se ha recibido la producto";   
  97.                    
  98.             }else{      
  99.                     echo "He recibido datos y procedo a insertarlos..";
  100.                    
  101.       }
  102. }else{
  103.       //MUESTRO EL FORMULARIO
  104.       }
  105.      
  106.  
  107.  
  108. ?>
  109.      
  110.    
  111.  
  112.     <div class="caja">
  113.    
  114.        <form action="<?echo $_SERVER['PHP_SELF']?>" method="post">
  115.        
  116.        <p style="color:#FF6500; font-size:24px;  text-align:center; font-weight:bold;" ><b>Encuesta<b></p><br>
  117.        <b>Elige por favor una de estas 3 categorias: <b><br><br>
  118.        <input type=radio name=CATEGORIA value="1" >Charcuteria / Carnisseria<br>
  119.        <input type=radio name=CATEGORIA value="2">Pizzeria<br>
  120.        <input type=radio name=CATEGORIA value="3">Restaurant<br><br>
  121.        
  122.        <b>Ingresa el nombre del negocio:<b><br><br>
  123.        <input type="text" name="nombre_local" size="50px" ><br><br>
  124.        
  125.        <b>Califica según las estrellas la limpieza y orden del local:</b><br><br>
  126.        <img src="hoteles/imagenes/cincoestrellas.png"  alt="estrella" width="100px"/>Excelente      <input type=radio name=ORDEN value="5" ><br>
  127.        <img src="hoteles/imagenes/cuatroestrellas.png" alt="estrella" width="80px"/> Bueno          <input type=radio name=ORDEN value="4" ><br>
  128.        <img src="hoteles/imagenes/tresestrellas.png"   alt="estrella" width="60px"/> Normal         <input type=radio name=ORDEN value="3" ><br>
  129.        <img src="hoteles/imagenes/dosestrellas.png"    alt="estrella" width="40px"/> Malo           <input type=radio name=ORDEN value="2" ><br>
  130.        <img src="hoteles/imagenes/unaestrella.png"     alt="estrella" width="20px"/> Pesimo         <input type=radio name=ORDEN value="1" ><br><br>
  131.        
  132.        <b>Califica según las estrellas la atención del personal</b><br><br>
  133.        <img src="hoteles/imagenes/cincoestrellas.png"  alt="estrella" width="100px"/>Excelente      <input type=radio name=ATENCION value="5" ><br>
  134.        <img src="hoteles/imagenes/cuatroestrellas.png" alt="estrella" width="80px"/> Bueno          <input type=radio name=ATENCION value="4" ><br>
  135.        <img src="hoteles/imagenes/tresestrellas.png"   alt="estrella" width="60px"/> Normal         <input type=radio name=ATENCION value="3" ><br>
  136.        <img src="hoteles/imagenes/dosestrellas.png"    alt="estrella" width="40px"/> Malo           <input type=radio name=ATENCION value="2" ><br>
  137.        <img src="hoteles/imagenes/unaestrella.png"     alt="estrella" width="20px"/> Pesimo         <input type=radio name=ATENCION value="1" ><br><br>
  138.        
  139.        <b>Califica según las estrellas como era el producto que compraste(Si es restaurant califica por el plato)</b><br><br>
  140.        <img src="hoteles/imagenes/cincoestrellas.png"  alt="estrella" width="100px"/>Excelente                        <input type=radio name=PRODUCTO value="5" ><br>
  141.        <img src="hoteles/imagenes/cuatroestrellas.png" alt="estrella" width="80px"/> Bueno                            <input type=radio name=PRODUCTO value="4" ><br>
  142.        <img src="hoteles/imagenes/tresestrellas.png"   alt="estrella" width="60px"/> Normal                           <input type=radio name=PRODUCTO value="3" ><br>
  143.        <img src="hoteles/imagenes/dosestrellas.png"    alt="estrella" width="40px"/> Malo                             <input type=radio name=PRODUCTO value="2" ><br>        
  144.        <img src="hoteles/imagenes/unaestrella.png"     alt="estrella" width="20px"/> Pesimo                           <input type=radio name=PRODUCTO value="1" ><br><br>
  145.        
  146.        <b>Necesitamos la dirección y algún comentario que quieras agregar</b><br><br>
  147.        <textarea name="datos_local" rows="10" cols="30"></textarea><br>
  148.        
  149.        <b>Tu email<b><br><br>
  150.        <input type="text" size="35" value="" name="email"><br><br>
  151.        <input type=submit name=OK  class="button" VALUE="Enviar">
  152.        <input type="reset" class="button"/>
  153.      </div>
  154. </div>
  155.  
  156. </form>
  157.  
  158.  
  159.    
  160. </body>
  161. </html>
  162.  
  163.  
  164. En la espera
  165.  
  166. Gracias