Foros del Web » Programando para Internet » PHP »

Problema con Xampp

Estas en el tema de Problema con Xampp en el foro de PHP en Foros del Web. Amigos tengo dos servidores Appserv y Xampp y este codigo en Xampp no funciona. @import url("http://static.forosdelweb.com/clientscript/vbulletin_css/geshi.css"); Código PHP: Ver original <?php     if ( ...
  #1 (permalink)  
Antiguo 08/04/2015, 11:38
Avatar de tquezada  
Fecha de Ingreso: febrero-2013
Ubicación: Santiago
Mensajes: 196
Antigüedad: 11 años, 2 meses
Puntos: 8
Problema con Xampp

Amigos tengo dos servidores Appserv y Xampp y este codigo en Xampp no funciona.

Código PHP:
Ver original
  1. <?php
  2.     if(isset($test)){
  3.         echo "hola";
  4.     }
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <title>Documento sin título</title>
  11. </head>
  12. <body>
  13. <form method="post">
  14.     <input type="submit" name="test" value="Test" />
  15. </form>
  16. </body>
  17. </html>

Sera que tengo configurado algo distinto en php.ini?

Saludos
__________________
¿Sabes cuántos programadores hacen falta para cambiar una bombilla? - no, no ¿Cuántos? - Ninguno... es un problema de hardware.
  #2 (permalink)  
Antiguo 08/04/2015, 11:52
 
Fecha de Ingreso: octubre-2014
Ubicación: Buenos Aires
Mensajes: 278
Antigüedad: 9 años, 6 meses
Puntos: 12
Respuesta: Problema con Xampp

Prueba así.

<?php
if(isset($_POST) and !emtpy($_POST['test'])){
echo "hola";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<body>
<form method="post">
<input type="submit" name="test" value="Test" />
</form>
</body>
</html>
__________________
http://www.sp-vision.net
  #3 (permalink)  
Antiguo 08/04/2015, 12:32
Avatar de tquezada  
Fecha de Ingreso: febrero-2013
Ubicación: Santiago
Mensajes: 196
Antigüedad: 11 años, 2 meses
Puntos: 8
Respuesta: Problema con Xampp

Gracias por tu respuesta ya lo había solucionado tal cual.
Tu sabes si sera la configuración del php.ini?
__________________
¿Sabes cuántos programadores hacen falta para cambiar una bombilla? - no, no ¿Cuántos? - Ninguno... es un problema de hardware.
  #4 (permalink)  
Antiguo 08/04/2015, 14:06
 
Fecha de Ingreso: octubre-2014
Ubicación: Buenos Aires
Mensajes: 278
Antigüedad: 9 años, 6 meses
Puntos: 12
Respuesta: Problema con Xampp

Nop no es tema de configuración del php.ini.

Saludos.
__________________
http://www.sp-vision.net

Etiquetas: html, xampp
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 09:20.