Ver Mensaje Individual
  #8 (permalink)  
Antiguo 11/01/2008, 09:02
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Dar valores html a una variable php?

Tienes que escapar TODAS las comillas, no solo 1, y los comandos en PHP terminan con un punto y coma (;), te recomiendo leer un tutorial bueno sobre PHP y su sintaxis antes de empezar a programar.:
Código PHP:
<html>

<head>
  <title></title>
</head>

<body>

<?php
$imagen
="<input type=image src=\"image.gif\" name=\"sub\">";

echo 
$imagen;
?>

</body>

</html>
Saludos.