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:
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.
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>
[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.
Comment