Professional Web Applications Themes

Display variable in text field - Macromedia ColdFusion

Here's the code: <input type="text" name="myDate" id="myDate" value="#strDate#"> Not sure why this doesn't work. Instead of the value of the variable, I get the variable name in the text box '#strDate#' I have other pages where i am diplaying variable values in text boxes, for example here's one the works on another page: <input type="text" name="Markup" value="#Markup#"> I don't see any differences in the code....

  1. #1

    Default Display variable in text field

    Here's the code: <input type="text" name="myDate" id="myDate" value="#strDate#">

    Not sure why this doesn't work.
    Instead of the value of the variable, I get the variable name in the text box
    '#strDate#'

    I have other pages where i am diplaying variable values in text boxes, for
    example here's one the works on another page:
    <input type="text" name="Markup" value="#Markup#">

    I don't see any differences in the code.

    timrande Guest

  2. #2

    Default Re: Display variable in text field

    Use:

    <input type="text" name="myDate" id="myDate" value="<cfoutput>#VARIABLES.strDate#</cfoutput>" />
    Aegis Kleais Guest

  3. #3

    Default Re: Display variable in text field

    You need to use cfoutput:-

    <cfoutput>
    <input type="text" name="Markup" value="#Markup#">
    </cfoutput>
    Stressed_Simon Guest

  4. #4

    Default Re: Display variable in text field

    thanks, yep..needed the cfoutput... and i had cfoutput much higher up on the other page..and missed it easily...thank you..

    timrande Guest

Similar Threads

  1. i want to display all the data in the database to the text field
    By binglee17@gmail.com in forum Macromedia Director 3D
    Replies: 0
    Last Post: June 23rd, 05:57 AM
  2. Replies: 2
    Last Post: February 22nd, 04:59 PM
  3. help with dynamic text field display
    By chrsjrngn in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: February 19th, 12:24 AM
  4. Replies: 1
    Last Post: September 16th, 05:00 AM
  5. Replies: 0
    Last Post: September 11th, 07:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139