Update connect.php

Added input for pid