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:
Expand|Select|Wrap|Line Numbers
- <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>
[HTML]<table class="main" border="1" cellspacing="0" cellpadding="5">
<cfoutput query="myblog">
<tr>
<td class="user"><strong>ID: </strong>#username#</td>
<td class="subject" colspan="2"><strong>Subject: </strong>#blogTitle#</td>
</tr>
<tr>
<td class="date">#dateAppend#</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"> </td>
</tr>
<tr>
</cfoutput>
</table>
[/HTML]
Hope someone can help!?
Thanks.