Submit works and returns variables using PHP