Ver Mensaje Individual
  #7 (permalink)  
Antiguo 10/01/2008, 22:09
Avatar de Carlmycol
Carlmycol
 
Fecha de Ingreso: diciembre-2007
Ubicación: Los Teques, Venezuela
Mensajes: 240
Antigüedad: 16 años, 4 meses
Puntos: 3
Pregunta Re: Dar valores html a una variable php?

Es que siempre lo pruevo porque tengo el servidor apache con php en mi computadora :S

Código PHP:
<html>

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

<body>

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

echo $imagen
?>

</body>

</html>
y me sale este error

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in c:\appserv\www\anti-bots\index.php on line 10

Parse error: syntax error, unexpected T_STRING in c:\appserv\www\anti-bots\index.php on line 10

Estoy mas confundio voy a buscar informacion sobre eso de escapar comillas :S