"; echo '
'; echo $title.$s.$lastname.$s.$firstname.$s.$nameofwebsite.$s.$fullurl.$s.$date.$s.$lastvisited; echo '
'; */ $lastvisited = str_replace(',', ' ',$lastvisited); if( !empty($lastname1) & !empty($firstname1) ){ $all_name=$lastname.', '.$firstname[0].' & '.$lastname1.', '.$firstname1[0].' '; } elseif ( empty($lastname1) & empty($firstname1) & !empty($lastname) & !empty($firstname) ){ $all_name=$lastname.', '.$firstname[0].' '; } if (empty($date)){ $date=$date;} else { $date=$date.', '; } /* if (empty($nameofwebsite)){ echo "
Please complete the name of website field !
"; } */ if (empty($title)){ echo "
Please complete the title field !
"; } if (empty($lastvisited)){ echo "
Please complete the Last date access field !
"; } if (empty($fullurl)){ echo "
Please complete the URL field !
"; } if (!empty($nameofwebsite)){ $nameofwebsite=' '.$nameofwebsite.', '; } //if (!empty($nameofwebsite) & !empty($title) & !empty($lastvisited) & !empty($lastvisited) & !empty($fullurl)){ if ( !empty($title) & !empty($lastvisited) & !empty($lastvisited) & !empty($fullurl)){ echo ""; echo '
';

if (empty($all_name)){
echo '\''.$title.'\', '.$WebsiteTitle.',  '.$date.$nameofwebsite.' Accessed: '.$lastvisited.', '.$fullurl;
}
else echo $all_name.$date.' \''.$title.'\', '.$WebsiteTitle.', '.$nameofwebsite.' Accessed '.$lastvisited.', '.$fullurl;
echo '
';} else { echo "
Please complete the form correctly !
"; } ?>