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 Submitting; Redirects to Homepage

November 07, 2012 5:18pm

Subscribe [1]
  • #1 / Nov 07, 2012 5:18pm

    Lance Britton

    9 posts

    This code is inside of template path “blog/article” and a {exp:channel:entries} tag.

    <div id="comments" class="comments">
            <h2>Comments</h2><p>{exp:comment:entries sort="asc"}<br />
            <div class="comment"><br />
            </p><h4>On {comment_date format="%M %d, %Y"}, {name} said:</h4>
    <p>         {comment}<br />
            </div>{/exp:comment:entries}<br />
            </p>
    
    <p>        </p><h3>Submit a Comment</h3>
    <p>        {exp:comment:form}<br />
             <table><br />
              <tr><br />
               <td colspan="2">Personal Info</td><br />
              </tr><br />
              <tr><br />
               <td><input type="text" name="name"><label>Name</label></td><br />
               <td><input type="text" name="email"><label>Email</label></td><br />
              </tr><br />
              <tr><br />
               <td colspan="2">Comment</td><br />
              </tr><br />
              <tr><br />
               <td colspan="2"><textarea name="comment"></textarea></td><br />
              </tr><br />
              <tr><br />
               <td colspan="2"><input type="submit" value="Submit"></td><br />
              </tr><br />
             </table><br />
            {/exp:comment:form}<br />
           </div>

    When the form is submitted, the browser redirects to the homepage and no submission data is pushed to the database.

    I tried adding a {exp:comment:preview} tag as well, but it didn’t seem to affect anything.

    Any help appreciated. Thanks!

  • #2 / Nov 08, 2012 11:49am

    Lance Britton

    9 posts

    Never mind.

    I was able to fix this by adding the “www.” back to the site URL in the Admin > General Configuration page.

    It was removed for some purpose regarding SEO by another colleague.

  • #3 / Nov 08, 2012 12:52pm

    Dan Decker

    7338 posts

    Lance,

    I’m glad you have it sorted out.

    If you need anything else, please let me know!

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases