Adding basic function to save.php