Name : ".$_POST['fname']."\n"; $text_out .= $text_in; fwrite ($ptr_file, $text_in); $text_in = " Surname : ".$_POST['sname']."\n"; $text_out .= $text_in; fwrite ($ptr_file, $text_in); $text_in = " Institution : ".$_POST['university']."\n"; $text_out .= $text_in; fwrite ($ptr_file, $text_in); $text_in = " email : ".$_POST['email']."\n"; $text_out .= $text_in; fwrite ($ptr_file, $text_in); //---------------------- Closing files and outputs $text_out = str_replace("\n", '
',$text_out); $date="La date d'aujourd'hui est le : ".date('l jS \of F Y h:i:s A'); fwrite ($ptr_file, $date."\n"); echo "Merci pour votre inscription !"; echo "

".$date."

"; echo "

".$text_out."

"; fclose($ptr_file); ?>
Valid XHTML 1.0 Strict