Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coldfusion version 5 textarea

Status
Not open for further replies.

rleslie700

IS-IT--Management
Oct 17, 2007
1
US
Got a question. Our web service is on coldfusion version 5. We may upgrade at a later point but aren't going to right now because some of our forms written in 5 may not work in version 7 or 8.

In any case, the issue with version 5 is the cfinput type=textarea is not valid. i can create a textarea with just the html input type=textarea...but the info won't come over when the form is submitted.

Any ideas how to create a textarea with coldfusion version 5?
 
ColdFusion does not have a equivalent to the <textarea> tag.

I never use <cfform> because I find them to be more maintenance-heavy then necessary. Use the HTML version you'll save loads of hassle.

_____________________________
Just Imagine.
 
If you reference the textarea element by its name on the action page it will be available.

Code:
Form page:

<textarea name="MyMemo" cols="20" rows="5"><textarea>

Action page:

<cfoutput>#Form.MyMemo#</cfoutput>

Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
You can use HTML input field inside of a cfform without any issues. The 'cf' prefix just tells the coldfusion server to process any server side code (like the 'required' attribute). The browser still render the cfform as an HTML form.

So you can do this:
<cform>
<cfinput>
<cfinput>
<input>
<cfinput>
</cform>

And, to access the <input> tag on the action page you can do what Lyndon mentioned above.

I'd just stick to using HTML based <form> and <input> tags.

_____________________________
Just Imagine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top