ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Comment form not working

January 31, 2011 9:07pm

Subscribe [3]
  • #1 / Jan 31, 2011 9:07pm

    Thomas Sausen

    75 posts

    I’m using ExpressionEngine 2.1.3 but my comment form is not working. After I clicked submit I got “The form you submitted contained the following errors
    The comment field is required”

    {exp:comment:form channel="blog" name="contactform" id="contactform"}
                        
    
    
                        <label for="author">Name*</label>
    
                        <input type="text" name="name" id="name" value="" size="50" tabindex="1" />
                        
    
    
                        <label for="email">E-Mail* (will not be published)</label>
    
                        <input type="text" name="email" id="email" value="" size="50" tabindex="2" />
                        
    
    
                        <label for="url">Website</label>
    
                        <input type="text" name="url" id="url" value="" size="50" tabindex="3" />
                        
                            
    
    
                            <label for="comments" accesskey=C>Your wisdom*</label>
                            
    
                            <textarea name="comments"  id="comments">{comment}</textarea>
                            
    
                            <input type="submit" id="submit" value="Senden" class="submit_comment"/>
                    {/exp:comment:form}

    Any ideas? My contact form is working well.

  • #2 / Feb 01, 2011 1:24pm

    Ingmar

    29245 posts

    The actual comment form field needs to have a name of “comment” (singular), not “comments” as in your example. Can you try to change that, please?

  • #3 / Feb 01, 2011 1:41pm

    Thomas Sausen

    75 posts

    Now it’s working. Thanks. Just a small mistake. comments instead comment.

  • #4 / Feb 02, 2011 8:44am

    Sue Crocker

    26054 posts

    Glad Ingmar was able to help. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases