";
}
else {
$your_name=$_POST[your_name];
$your_name=stripslashes($your_name);
$your_phone=$_POST[your_phone];
$your_address=$_POST[your_address];
$your_birthday=$_POST[your_birthday];
$your_salary=$_POST[your_salary];
$filename="datebook.master";
if(!file_exists($filename)) {
print "No such file or directory";
exit();
}
$fh=fopen($filename,"a");
$outstring="$your_name:$your_phone:$your_address:$your_birthday:$your_salary
";
if(fwrite($fh,$outstring,strlen($outstring))==FALSE) {
echo "You cannot write to the $filename.
";
}
else {
$text=file_get_contents("$filename");
echo "
$text"; } echo "Sort $filename file