Código PHP:
Ver original- <?php  
- ## este es un archivo php que contiene código html puro 
- ?> 
- <!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> 
- <title>titulo</title>  
- <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
- <script type="text/javascript"> 
- //<![CDATA[ 
- function validar(){ 
- var email = document.getElementById("email").value; 
- var telefono = document.getElementById("telefono").value;  
- if((email == "")||(telefono == "")){ 
- alert('Ingrese su Email y su teléfono'); 
- return false; 
- } 
- } 
- //]]> 
- </script> 
- </head> 
- <body> 
- <?php 
- $x = "variable"; 
- ?> 
- <form action="email.php" onsubmit="return validar();"> 
- <input type="text" name="email" id="email" /><br /> 
- <input type="text" name="telefono" id="telefono" /> 
- <input type="submit" /> 
- </form> 
- <div> 
- <?php 
- if($x == "variable"){ 
- echo "Hola"; 
- } 
- ?> 
- </div> 
- </body> 
- </html> 
@Jor1980... 
Urgente !!!! los manuales
Saludos