Katie,
I tried out your example and I'm guessing that the action="" attributes of
the <form> element is either not specified, or explicitly set to
action="get". (the default is get too.) If you are posting with characters
other than a-zA-Z_0-9 then you'll need to either URLEncodedFormat() them, or
use the action=POST attributes to the <form> element.

Since you are using a textarea element in the form, it makes more sense to
use the POST action.

special characters are used in URL strings (and the GET method) to separate
the name=value pairs, since your text has these special characters, the
name=value pairs were mangled, resulting in a value no being defined where
you thought it would be.

Another suggestion:
<cfif IsDefined("FORM.REQ_JUST") AND Len(Trim(FORM.REQ_JUST))>
   <!--- Good Value --->

<cfelse>
   <!--- Bad Value --->
        You must enter the justification.<br>
        <a href="javascript:history.back()">Back</a>
        <CFABORT>
</cfif>

___________________________________________

  Sean Brown            <[EMAIL PROTECTED]>
  http://www.westcar.com/

  "Either way you get your dog back"
                          -Anonymous
___________________________________________


-----Original Message-----
From: Howell, Katie [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 08, 2000 2:44 PM
To: [EMAIL PROTECTED]
Subject: Textarea problem


I'm having a problem processing a text area.  It seem if a user enters
anything with  single quotes, double quotes or the percent sign it causes
problems.  The text area looks like:
<textarea cols=50 name="req_just" rows=5 wrap=virtual
class="sgs8n"></textarea>

and on the processing page I have this for validation:

<CFIF FORM.REQ_JUST Is "">
        You must enter the justification.<br>
        <a href="javascript:history.back()">Back</a>
        <CFABORT>
</cfif>

The user gets the following error:
Error Occurred While Processing Request

Error resolving parameter FORM.REQ_JUST

The specified form field cannot be found. This problem is very likely due to
the fact that you have misspelled the form field name.

The error occurred while evaluating the expression:

 FORM.REQ_JUST Is ""

The error occurred while processing an element with a general identifier of
(CFIF), occupying document position (3:1) to (3:26).

This only seems to happen when we have "", '', or % entered in the text
area.  Anyone have any suggestions?

Thanks!
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to