File Directory Php



$form ="

Give us your personal info!

Your Name:



Your Email:



Your Preferred Language:


Choose a language:
English
Spanish


Your Occupation:


What do you do?:
Student
Programmer



";
if ($seenform != "y") :
     print "$form";
else :
     $fd = fopen("user_information.txt", "a");
     $name = str_replace("|", "", $name);
     $email = str_replace("|", "", $email);
     $user_row = $name."|".$email."|".$language."|".$job."\n";
     fwrite($fd, $user_row) or die("Could not write to file!");
     fclose($fd);
     print "Thank you!";
endif;
?>