473,385 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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:
Expand|Select|Wrap|Line Numbers
  1. <cfform name="myblog" method="post" action="blogaction.cfm" enctype="multipart/form-data">
  2.       User Name:<br />
  3.       <cfinput type="text" name="userName" required="yes" message="Name Required" size="23"><br />
  4.       Subject:<br />
  5.       <cfinput type="text" name="blogTitle" required="yes" message="Subject Required" size="23">
  6.       <br />
  7.       <br />
  8.       Blog:<br />
  9.       <textarea name="blog" id="blog" required="yes" message="Blog Required" rows="5" class="blog1" wrap="virtual"></textarea>
  10.       <br /><br />
  11.       Image* (Optional)<br />
  12.       <input type="file" name="blogimagefile" class="file">
  13.       <br /><br /><br /><br />
  14.       <input type="reset" value="Reset" class="button1">
  15.       <input type="submit" value="Submit" class="button1">
  16.     </cfform>
  17.  
The Output:
[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">&nbsp;</td>
</tr>
<tr>
</cfoutput>
</table>
[/HTML]
Hope someone can help!?
Thanks.
May 1 '06 #1
1 6184
rengaraj
168 100+
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
Feb 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Kent | last post by:
Hi all, Thank you in advance. Here is the issue: I need to create a page that allows users to copy the contents of a MS Word document and paste them into a textarea. All fine and dandy...but the...
3
by: xscully | last post by:
Is there a way to force the user to read a textarea? Just like those 'agreements' that is used in a few offline instalation.. You have to scroll all the way down of the textarea and then the I...
3
by: yuelinniao | last post by:
hi, I have got a simple way to make "textarea" support "auto-submit" when pressing Ctrl+Enter, and tested under both IE and Firefox. The common old method is like this: <form name=form2>...
6
by: Tony | last post by:
The w3schools HTML tag reference for <textarea> http://www.w3schools.com/tags/tag_textarea.asp says that the attributes 'cols' and 'rows' are REQUIRED attributes for the textarea tag. Looking at...
0
by: sabian08 | last post by:
Please help a newb! Any suggestions are appreciated! My goal is to have all checkboxes=true up to today's month when the "Fiscal Year" checkbox is clicked. Right now, I'm having trouble with the...
16
by: Jen | last post by:
Hi. I have this problem that I think should be easy but have been struggling with this for days. I have a list based on a recordset from a database. This list consists of records meeting a certain...
7
by: dmorand | last post by:
I'm having an issue validating that the "Add" button was selected..... <cfform name="NEW_FORM" action="systemSubmit.cfm"> <tr><td colspan=2 align="center"><h4>Submit New System</h4></td></tr>...
4
by: fordie1000 | last post by:
Hi, I have been trying to do this for a few days now ... I'd appreciate any help or insights ... Basically I want to enter text into a web 'textarea' automatically ... here is what I thought...
8
by: Sandy Tipper | last post by:
I have never had a textarea content change, in any browser. On several different projects. With javascript enabled (other stuff works.) I have read lots, and everyone says it should work. Can...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.