v.7

Make sure your connection is secure ("httpS:" instead of just "http:"). Click the logo above for a secure connection.

| Menu ☰ |
× close
Home Products Services Blog Contact

CMSbyCW Demo CMSbyCW Tutorials / FAQs / Documentation CW Cyberspace Invaders (people liked it!) What's cooking?

How To Use The Sample Comment Form

How To Use The Sample Comment Form

Published on: 01/21/2026, 12:56 PM by Software Developer

Developer Notes:  The Instructions Below are for Customers.  The Sample Comment Form codes "Page" can be found in "Manage Pages" inside your "Dashboard".  I decided to include it with the CMSbyCW Package.  I ALSO put this in a blog post here (so it is searchable), because I also added a "Help" link on every Dashboard of the package, so this Blog can be used as a resource (for "tutorials" and "how to" articles as well).   

Here's a Sample Comment Form that you can use.

1) Open the file: comment-submit.php (via FTP or your webhost's "File Manager", under "public_html" folder) Change the email address to your email address, and the domain name (red font below) that is in the comment-submit.php file.  The code block to edit in the comment-submit.php file is: 

// Send email notification to the Admin without exposing their email address 
//CHANGE THIS TO YOUR ADMIN EMAIL, INSIDE THE ‘ ‘
$adminEmail = 'YOUR-EMAIL@YOUR-DOMAIN.com';  
$subject = "New comment on: {$postSlug}";
$body = "Name: {$name}\nEmail: {$email}\nMessage: {$message}\n\nApprove in CMS.";

// Use a generic From address so the Admin's email is not exposed , 
//CHANGE THE NO-REPLY EMAIL ADDRESS TO YOUR DOMAIN, INSIDE THE < >

$headers = "From: Website Notifications <no-reply@YOUR-DOMAIN.com>\r\n";
$headers .= "Reply-To: {$email}\r\n"; // reply goes to commenter


2) Open this "Sample Comment Form " web Page from the:

2.1) Dashboard >

2.2) Manage Pages >

2.3) Find the Title: "03-Sample Comment Form"  

2.4) Under "Actions" select "Edit"

5) On the Content Editor, switch to "Source" code,

6) Then copy the entire code below the line by highlighting the code block, (then press "Control + C" to copy it to the clipboard)

7) Add a New Page, or Add a New Post, and then paste the code you copied (press Control = V to paste what's in your clipboard). 

8) Go ahead and test this Comment Form and check your email. (This comment form is also what is used in the "Feedback" Page).  

Tips: 

-----------Front End:  Published Page Mode, You will see the ACTUAL COMMENT FORM --------------

-----------Back End:  On Edit Page Mode, COPY ALL THE CODE BELOW THIS LINE--------------

Leave a Comment




0 / 500 characters
 

Got feedback?

Click HERE and Leave a comment

Share:




Thank you for visiting our website!