added new function to receive post data

new function get_post_data() has been added which receives post data submitted to the page and returns in associative array format.