Post function updated

Post function for PHP is updated