modified phrets.php that allows both POST and GET.