Title: http/s form display issue
Last modified: August 21, 2016

---

# http/s form display issue

 *  Resolved [leereamsnyder](https://wordpress.org/support/users/leereamsnyder/)
 * (@leereamsnyder)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/https-form-display-issue/)
 * In the function `cntctfrm_display_form` you have an issue with how you decide
   to show the port number for HTTPS sites.
 * This is at line 1409 on contact_form.php: You have `if ('80' != $_SERVER["SERVER_PORT"])`,
   but HTTPS is typically port 443 but doesn’t use the port number in URLs. So that
   should be if `'80' != $_SERVER["SERVER_PORT"] || '443' != $_SERVER["SERVER_PORT"]`
 * Also (this may just be our server environment), `$_SERVER['HTTPS']` is sometimes
   all-uppercase “ON”, not all-lowercase “on”. So I have to change `$_SERVER["HTTPS"]
   == "on"` to `strtolower($_SERVER["HTTPS"]) == "on"` to make sure that check works.
 * Thanks!
 * [https://wordpress.org/plugins/contact-form-plugin/](https://wordpress.org/plugins/contact-form-plugin/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/https-form-display-issue/#post-4622257)
 * Hi,
 * Thank you for the information, we will check if it does not cause any conflicts
   and after that make the necessary changes in the plugin.
 * Sincerely,
    BestWebSoft Support Team

Viewing 1 replies (of 1 total)

The topic ‘http/s form display issue’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-plugin/assets/icon-256x256.gif?rev=2565795)
 * [Contact Form by BestWebSoft - Advanced WP Contact Form Builder for WordPress](https://wordpress.org/plugins/contact-form-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-plugin/reviews/)

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 1 reply
 * 2 participants
 * Last reply from: [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/https-form-display-issue/#post-4622257)
 * Status: resolved