Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/07/2011, 11:34
Avatar de andresdzphp
andresdzphp
Colaborador
 
Fecha de Ingreso: julio-2011
Ubicación: $this->Colombia;
Mensajes: 2.749
Antigüedad: 12 años, 9 meses
Puntos: 793
Respuesta: No me muestra datos completos en un input

Debes usar htmlentities para que se solucione el problema de las comillas:

Código PHP:
Ver original
  1. <input name="mactor" type="text" class="input-rojo" id="mactor" value="<?php echo htmlentities($row_rsT['mactor']); ?>" maxlength="500" />
  2.  
  3. // Y con el segundo caso que colocas
  4.  
  5. <?php
  6. $titulo = htmlentities('La pelicula "Caperucita Azul" de Mc\'Collins');
  7. ?>
  8.  
  9. <input name="mactor" type="text" value="<?php echo $titulo; ?>" size="1000"/>

Mira estos links

http://php.net/manual/es/function.addslashes.php

http://www.php.net/manual/es/function.htmlentities.php

Última edición por andresdzphp; 22/07/2011 a las 11:41