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.

Problem Posting Comments

September 12, 2012 4:53pm

Subscribe [2]
  • #1 / Sep 12, 2012 4:53pm

    Cowdrey

    5 posts

    Hello,

    I’m trying to implement a comment form on my site and when I test a comment submission, I get an “Invalid GET data”. After doing several Google searches, I’m stumped.

    This is the code for my form:

    <form class="contact">
              {exp:comment:form channel="news" preview="news/preview"}
              <div class="name-input">
      <label>My name is:</label>
       <input id="name" name="Name" value="{name}" type="text" class="name">
             </div>
             
             <div class="name-input lastinput">
       <label>Email me at:</label>
       <input id="email" name="Email" value="{email}" type="email"  class="name">
             </div>
             <div class="message-bg">
             <label>I wanted to say:</label>
      <textarea name="comment" class="message">{comment}</textarea>
            </div>
      <input type="submit" class="submit" name="submit" value="Submit"></input>
     {/exp:comment:form}
      </form>

    It’s spitting out a crazy URL after submission. Any ideas?

    Thanks in advance!

  • #2 / Sep 12, 2012 10:21pm

    Bhashkar Yadav

    727 posts

    Hi Cowdrey,

    As I can see you are using <form></form> HTML tag which isn’t required here. Check the channel preferences for the comment.

    Hope it would help you.


    Best Regards,

  • #3 / Sep 13, 2012 10:35am

    anonymous162744

    58 posts

    The {exp:comment:form} creates the <form> tags for you. If you use Chrome, you can open up the Developer Tools ‘View > Developer” to get more information about your page and help you track down any errors. Other browsers also have debugging consoles.

  • #4 / Sep 13, 2012 1:23pm

    Cowdrey

    5 posts

    That did the trick!

    Thank you all!

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

ExpressionEngine News!

#eecms, #events, #releases