changed add_data.php to accept POST