Update resource.php

Changed to POST instead of GET. This is to match the code in the form on demo page