php scripts and html for round 3