Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/09/2015, 13:48
santi2892009
 
Fecha de Ingreso: mayo-2012
Mensajes: 363
Antigüedad: 12 años
Puntos: 0
codigo php se muestra en imput

Código PHP:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Documento sin título</title>
  6. </head>
  7.  
  8. <body>
  9. <div class="main">
  10.         <div class="box">
  11.           <form class="form" action="otra.php" method="post">
  12.           <fieldset>
  13.                     <div class="row">
  14.  
  15.                             <input type='nombre'  class="nombre" placeholder="Usuario" value="<?= @$_POST['nombre'] ?>" ><?php echo @$error[1] ?>
  16.                           <input type="password" class='pass1' name="password" placeholder="Password" value="<?= @$_POST['pass'] ?>"><?php echo @$error[2] ?>
  17.                           <input type="text" class="email" name="email" placeholder="email" value="<?= @$_POST['email'] ?>"><?php echo @$error[2] ?>
  18.                           <div id="boton">
  19.                             <input name="Ingresar2" type="submit" value="."/ class="boton">
  20.                           </div>
  21. </body>
  22. </html>

el codigo funciona pero:en el imput me sale esto:<?= @$_POST['email'] ?>,cada uno su codigo php

Última edición por santi2892009; 14/09/2015 a las 14:37