Foros del Web » Programando para Internet » PHP »

Problemas subir html desde un form

Estas en el tema de Problemas subir html desde un form en el foro de PHP en Foros del Web. Hola muy buenas, Tengo un pequeño problema al añadir codigo html desde un formulario. Tengo este script. Código PHP: <input type="hidden" name="youtube_1" value=" <?= htmlentities ( stripslashes ( $_POST ...
  #1 (permalink)  
Antiguo 14/06/2011, 02:19
Avatar de syntex  
Fecha de Ingreso: noviembre-2002
Ubicación: Cataluña
Mensajes: 978
Antigüedad: 21 años, 5 meses
Puntos: 4
Problemas subir html desde un form

Hola muy buenas,

Tengo un pequeño problema al añadir codigo html desde un formulario.

Tengo este script.

Código PHP:
<input type="hidden" name="youtube_1" value="<?= htmlentities(stripslashes($_POST['youtube_1'])); ?>" />
<input type="hidden" name="youtube_2" value="<?= htmlentities(stripslashes($_POST['youtube_2'])); ?>" />
<input type="hidden" name="youtube_3" value="<?= htmlentities(stripslashes($_POST['youtube_3'])); ?>" />
<table cellpadding="0" cellspacing="0">
    <tr>
        <td rowspan="3">
        <textarea name="youtube_<?= $_SESSION["VideoYouTube"."_Idioma"]; ?>" cols="65" rows="3" /><?= htmlentities(stripslashes($_POST['youtube_'.$_SESSION['VideoYouTube_Idioma']])); ?></textarea>
        </td>
    </tr>
    <tr>
        <td></td>
        <td align="right" width="50"><font color="#000000" style="font-size:11px;">Width:</font></td>
        <td width="5"></td>
        <td><input type="text" name="width" value="<?= htmlentities(stripslashes($_POST['width'])); ?>" size="6" maxlength="6" /></td>
    </tr>
    <tr>
        <td></td>
        <td align="right"><font color="#000000" style="font-size:11px;">Height:</font></td>
        <td></td>
        <td><input type="text" name="height" value="<?= htmlentities(stripslashes($_POST['height'])); ?>" size="6" maxlength="6" /></td>
    </tr>
</table>
Y cuando trabajo en mi local me funciona perfecto, pero cuando trabajo a traves de un servidor me indica esto al realizar la subida de las variables.

Forbidden
You do not have permission to access this document.

Web Server at xxxxxxxxxxxx.com


Muchisimas gracias.
__________________
------------------------------------------------
La paciencia es el rey de la ciencia
------------------------------------------------

  #2 (permalink)  
Antiguo 14/06/2011, 03:05
Avatar de Jask  
Fecha de Ingreso: abril-2006
Ubicación: Madrid
Mensajes: 773
Antigüedad: 18 años
Puntos: 15
Respuesta: Problemas subir html desde un form

El form como lo tienes ?? Y al enviar el formulario, a qué haces referencia ?

Saludos
__________________
Os iusti meditabitur sapientiam
Si te he ayudado, por qué no un poquito de Karma :) ?
  #3 (permalink)  
Antiguo 14/06/2011, 03:16
Avatar de syntex  
Fecha de Ingreso: noviembre-2002
Ubicación: Cataluña
Mensajes: 978
Antigüedad: 21 años, 5 meses
Puntos: 4
Respuesta: Problemas subir html desde un form

El form lo tengo en POST.

<form action="" method="post" id="Form1" name="formulario1" enctype="multipart/form-data">

Por ejemplo un video.

<iframe width="560" height="349" src="http://www.youtube.com/embed/F_0VZhhSLDU" frameborder="0" allowfullscreen></iframe>

Me indica el error.
Forbidden
You do not have permission to access this document.

Web Server at xxxxxxxxxxxx.com
__________________
------------------------------------------------
La paciencia es el rey de la ciencia
------------------------------------------------

  #4 (permalink)  
Antiguo 14/06/2011, 03:32
Avatar de Jask  
Fecha de Ingreso: abril-2006
Ubicación: Madrid
Mensajes: 773
Antigüedad: 18 años
Puntos: 15
Respuesta: Problemas subir html desde un form

Vale, y ese form, a donde lo mandas ?
__________________
Os iusti meditabitur sapientiam
Si te he ayudado, por qué no un poquito de Karma :) ?
  #5 (permalink)  
Antiguo 14/06/2011, 04:03
Avatar de syntex  
Fecha de Ingreso: noviembre-2002
Ubicación: Cataluña
Mensajes: 978
Antigüedad: 21 años, 5 meses
Puntos: 4
Respuesta: Problemas subir html desde un form

Lo guardo a la bd?
__________________
------------------------------------------------
La paciencia es el rey de la ciencia
------------------------------------------------


Etiquetas: html, formulario
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:39.