Skip to main content
Inspiring
October 28, 2007
Question

dash in variable name

  • October 28, 2007
  • 2 replies
  • 2289 views
This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C81965.824B8DC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have a form field that is created dynamically that has a dash in it. =
So the result is=20


<input type=3D"text" name=3D"QTY1749-4" id=3D"QTY1749-4" size=3D"3" =
maxlength=3D"5">

I have no option of taking the dash out.

When I go to display this with a cfoutput as you may already know no =
matter what I put in the form field the value comes out to something =
like 46. But if I do a cfdump it shows the value entered into the form =
filed.=20

How do I get the value entered into the form field after submitting the =
form. If cfdump can display it that would seem to indicate there is a =
way.

Thanks for any help you can give.





------=_NextPart_000_0006_01C81965.824B8DC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16544" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<P><FONT face=3DArial size=3D2>I have a form field that is created =
dynamically that=20
has a dash in it. So the result is <BR></FONT></P>
<P><FONT face=3DArial size=3D2>&lt;input type=3D"text" =
name=3D"QTY1749-4" id=3D"QTY1749-4"=20
size=3D"3" maxlength=3D"5"&gt;</FONT></P>
<P><FONT face=3DArial size=3D2>I have no option of taking the dash =
out.</FONT></P>
<P><FONT face=3DArial size=3D2>When I go to display this with a cfoutput =
as you may=20
already know no matter what I put in the form field the value comes out =
to=20
something like 46. But if I do a cfdump it shows the value entered into =
the form=20
filed. </FONT></P>
<P><FONT face=3DArial size=3D2>How do I get the value entered into the =
form field=20
after submitting the form. If cfdump can display it that would seem to =
indicate=20
there is a way.</FONT></P>
<P><FONT face=3DArial size=3D2>    Thanks for any help =
you can=20
give.</FONT></P>
<P><FONT face=3DArial size=3D2></FONT> </P>
<P><FONT face=3DArial size=3D2></FONT><FONT face=3DArial=20
size=3D2></FONT> </P></BODY></HTML>

------=_NextPart_000_0006_01C81965.824B8DC0--

    This topic has been closed for replies.

    2 replies

    Inspiring
    October 29, 2007
    Wow thanks!!!


    "Adam Cameron" <adam_junk@hotmail.com> wrote in message
    news:1un7xihgtb5os$.1m3gymfu7o8j4.dlg@40tude.net...
    > form["QTY1749-4"]
    >
    > Read up on associative array notation:
    > http://livedocs.adobe.com/coldfusion/8/htmldocs/arrayStruct_07.html#1126503
    >
    > --
    > Adam


    Inspiring
    October 28, 2007
    form["QTY1749-4"]

    Read up on associative array notation:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/arrayStruct_07.html#1126503

    --
    Adam