Amended add.php