cfform - textarea submitting intermittently

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mystickle
    New Member
    • May 2006
    • 1

    cfform - textarea submitting intermittently

    Hi there! I'm new to ColdFusion so I hope my question makes sense...

    I have created a blog using ColdFusion, but for some reason when the blog is submitted the blog text within the <textarea> field is not always submitting.

    The form:
    Code:
    <cfform name="myblog" method="post" action="blogaction.cfm" enctype="multipart/form-data">
          User Name:<br />
          <cfinput type="text" name="userName" required="yes" message="Name Required" size="23"><br />
    	  Subject:<br />
          <cfinput type="text" name="blogTitle" required="yes" message="Subject Required" size="23">
          <br />
          <br />
          Blog:<br />
          <textarea name="blog" id="blog" required="yes" message="Blog Required" rows="5" class="blog1" wrap="virtual"></textarea>
          <br /><br />
          Image* (Optional)<br />
          <input type="file" name="blogimagefile" class="file">
          <br /><br /><br /><br />
          <input type="reset" value="Reset" class="button1">
          <input type="submit" value="Submit" class="button1">
        </cfform>
    The Output:
    [HTML]<table class="main" border="1" cellspacing="0" cellpadding="5" >
    <cfoutput query="myblog">
    <tr>
    <td class="user"><s trong>ID: </strong>#usernam e#</td>
    <td class="subject" colspan="2"><st rong>Subject: </strong>#blogTit le#</td>
    </tr>
    <tr>
    <td class="date">#d ateAppend#</td>
    <td class="content" >#blog#</td>
    <td class="image">< cfif #blogimagefile# EQ "">[no image]
    <cfelse>
    <img src="images/#blogimagefile# " width="100" height="70"></cfif></td>
    </tr>
    <tr>
    <td class="bar" colspan="3">&nb sp;</td>
    </tr>
    <tr>
    </cfoutput>
    </table>
    [/HTML]
    Hope someone can help!?
    Thanks.
  • rengaraj
    New Member
    • Jan 2007
    • 168

    #2
    Try removing required="yes" message="Blog Required" from your <textarea> tag...

    OR

    Keep required="yes" message="Blog Required" after changing your <textarea> tag to <cftextarea>

    Also,

    Checkout all the submitted values through the <cfdump> tag

    Comment

    Working...