Groups | Blog | Home
all groups > flash data integration > february 2007 >

flash data integration : Input text boxes now passing formatting with variables?


RagnarDanskjold
2/14/2007 6:49:14 PM
Hello, All-
I've had a site running for a few months that takes four input text boxes
(name, e-mail, subject and message) and posts the values to an ASP page which
composes an e-mail with a CDO.Message command.

For some reason (nothing has been changed in the files or on the server),
it stopped working and I've traced it down to Flash passing Input Text Box
Formatting information along WITH the variable.

Help!

Can anyone explain what's happened and how to correct it?

For example, in my form I've set all the name, e-mail and message to static
text and let the Subject variable be passed and in the e-mail subject line, I
get this:

<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="American Typewriter"
SIZE="12" COLOR="#000000" LETTERSPACING="0"
KERNING="0">Explicitly?</FONT></P></TEXTFORMAT>

Obviously, I only want the string 'Explicitly?' which I entered in the subject
field. My guess it that it's doing this to all the fields and it's not parsing
a correct e-mail address as well.

Any and all help is greatly appreciated.
Thanks,
Steve

MotionMaker
2/14/2007 7:19:44 PM
Use the .text or the .html text property in the assignment statement.

myServerVar = myInput // Bad and may include additional data you are seeing.
myServerVar = myInput.text; // Good and should just be the text
myServerVar = myInput.htmlText;// Good and includes html.

RagnarDanskjold
2/14/2007 7:48:59 PM
Thank you for the reply, Lon

To clarify, (since I'm a novice with ASP), are you referring to the assignment
statement in the ASP page?

Here's the opening request for variables in the ASP file:


Dim strNam,strEma,strSub,strBod

strNam = Request.Querystring("nom")
strEma = Request.Querystring("ema")
strSub = Request.Querystring("sub")
strBod = Request.Querystring("mes")


Do I need to re-assign each value like:

strSub = strSub.text

or use it elsewhere.

Thank you again for your help,
Steve

AddThis Social Bookmark Button