Comments on: Contact Form with Email Sending in PHP https://www.codexworld.com/create-simple-contact-form-php-send-email/ Web & Mobile App Development Company Thu, 11 Sep 2025 05:41:58 +0000 hourly 1 By: Krat Ohm https://www.codexworld.com/create-simple-contact-form-php-send-email/comment-page-1/#comment-161125 Tue, 11 Jan 2022 20:31:58 +0000 https://www.codexworld.com/?p=1837#comment-161125 How to prevent reloading of the page after submission ?

]]>
By: Vgo https://www.codexworld.com/create-simple-contact-form-php-send-email/comment-page-1/#comment-90306 Wed, 24 Jul 2019 15:52:24 +0000 https://www.codexworld.com/?p=1837#comment-90306 Hi!

It works perfectly but I need to add a select with options to the form, would it affect anyhow? can you give me an example of what’ll change if I add it?

thanks!

]]>
By: Abiodun Ilesanmi https://www.codexworld.com/create-simple-contact-form-php-send-email/comment-page-1/#comment-60153 Mon, 23 Jul 2018 16:16:26 +0000 https://www.codexworld.com/?p=1837#comment-60153 Thank you for very informative tutorial you shared here. Please do I need to create database on hosting server before this code can run? Thanks

]]>
By: Abiodun Ilesanmi https://www.codexworld.com/create-simple-contact-form-php-send-email/comment-page-1/#comment-60151 Mon, 23 Jul 2018 16:03:24 +0000 https://www.codexworld.com/?p=1837#comment-60151 Very informative tutorial. I love it. Please I am a new PHP learner, before all this code should work do I need to create database with table on the hosting server ? Please I would appreciate your response as regards this.

]]>
By: Nick https://www.codexworld.com/create-simple-contact-form-php-send-email/comment-page-1/#comment-54750 Wed, 14 Mar 2018 09:11:28 +0000 https://www.codexworld.com/?p=1837#comment-54750 Hi, how do i respond to the contact message afterwards. ? Thank you in advance.

]]>
By: Purushotam https://www.codexworld.com/create-simple-contact-form-php-send-email/comment-page-1/#comment-53260 Wed, 10 Jan 2018 04:35:35 +0000 https://www.codexworld.com/?p=1837#comment-53260 Hello
Nice article thanks for all the

]]>
By: CodexWorld https://www.codexworld.com/create-simple-contact-form-php-send-email/comment-page-1/#comment-52751 Wed, 20 Dec 2017 17:09:03 +0000 https://www.codexworld.com/?p=1837#comment-52751 In reply to Lyada Emmanuel.

PHP mail function will not work on localhost. You need to use SMTP server to send email from localhost. This tutorial may help you – https://www.codexworld.com/how-to-send-email-from-localhost-in-php/

]]>
By: Lyada Emmanuel https://www.codexworld.com/create-simple-contact-form-php-send-email/comment-page-1/#comment-52742 Wed, 20 Dec 2017 12:02:39 +0000 https://www.codexworld.com/?p=1837#comment-52742 Hello thanks for the tutorial , But am geting this waning after testing the downloaded code.
Warning: mail(): Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in C:\xampp\htdocs\simple\index.php on line 40
How can i go about it sir?

]]>
By: CodexWorld https://www.codexworld.com/create-simple-contact-form-php-send-email/comment-page-1/#comment-48229 Sun, 23 Jul 2017 16:28:51 +0000 https://www.codexworld.com/?p=1837#comment-48229 In reply to lin.

Define $statusMsg = '' to prevent the status message after form submit.

]]>
By: lin https://www.codexworld.com/create-simple-contact-form-php-send-email/comment-page-1/#comment-48228 Sun, 23 Jul 2017 16:20:45 +0000 https://www.codexworld.com/?p=1837#comment-48228 one question how can i clean the echo message after sending the message? its always appearing after i sent a message i dont know how i clean after refreshing.

]]>