Chapter3 Example7: final fix for POST code