Add form functionality for newportfolio.php