You can't use openssl functions to encrypt your page. PHP's SSL support has no relation to whether the server supports HTTPS.
Get your host to install HTTPS on your web site, and get a SSL server certificate if necessary. Then all the pages you serve via HTTPS will be encrypted the whole way, including post data and even their URLs and query strings.
Moreover, it does other things too.
Mark