Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/03/2007, 14:06
Avatar de xboygame
xboygame
 
Fecha de Ingreso: noviembre-2005
Mensajes: 13
Antigüedad: 20 años, 10 meses
Puntos: 0
Pregunta convertir Php a JavaScript

Alguien me puede convertir esto php a javascript, porque el servidor que tengo registrado no admite el php. Muchas gracias!!

Código PHP:
<?php  

if(isset($_POST['name'])) 
{  
      
      
    if((
$_POST['name']=="")&
    (
$_POST['cognom']=="")&
    (
$_POST['direccio']=="")&
    (
$_POST['email']=="")&
    (
$_POST['date']=="")&
    (
$_POST['inst']==""))
    { 
        echo 
"Omple bé el formulari si us plau<BR><BR>"; 
    }   
    else 
    {  
        
$datos=' 
        ==================================== 
        Nom: '
.$_POST['name'].' 
        Cognom: '
.$_POST['cognom'].' 
        Direccio: '
.$_POST['direccio'].' 
        E-mail: '
.$_POST['email'].' 
        Data Naixement: '
.$_POST['date'].' 
        Institut: '
.$_POST['inst']; 
         
        
// Ahora Escribimos Variable en Fichero de Texto 
         
        
$pun  =  fopen  (  '../Tkfe
/archivo.txt'  
,  'a+'  ); 
        
fwrite ( $pun , $datos ); 
        
fclose ( $pun );
        echo 
"Moltes gràcies per la seva participació!!!";
    }  
}  
?>