value= space between two fields

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default value= space between two fields

    :confused;
    Hi,
    I need some help with this one, I'm confused and I've tried everything but the
    right code.
    I have a form and is concatenating these two values
    <input type="text" name="txtName" value="<%= objLogin("FirstName") %> <%=
    objLogin("LastName") %>">
    I need to put a space between <%= objLogin("FirstName") %> AND <%=
    objLogin("LastName") %>
    So they don't show together

    Any help will be greatly appreciated,
    Thanks
    a-banana

    abanana Guest

  2. Similar Questions and Discussions

    1. #26351 [Opn->Bgs]: Incorrect handling of Null Fields/Numerical Fields with '0'
      ID: 26351 Updated by: iliaa@php.net Reported By: jabberwocky at ibplanet dot com -Status: Open +Status: ...
    2. #26351 [NEW]: Incorrect handling of Null Fields/Numerical Fields with '0'
      From: jabberwocky at ibplanet dot com Operating system: Any PHP version: 4.3.4 PHP Bug Type: MSSQL related Bug description: ...
    3. #26315 [Com]: mssql_fectch_* functions are returning a space char on empty fields
      ID: 26315 Comment by: w1lz0r at barrysworld dot net Reported By: webmaster at cbre dot fr Status: Bogus Bug...
    4. #26315 [Opn->Bgs]: mssql_fectch_* functions are returning a space char on empty fields
      ID: 26315 Updated by: iliaa@php.net Reported By: webmaster at cbre dot fr -Status: Open +Status: ...
    5. #26315 [NEW]: mssql_fectch_* functions are returning a space char on empty fields
      From: webmaster at cbre dot fr Operating system: Windows 2000 Server PHP version: 4.3.4 PHP Bug Type: MSSQL related Bug...
  3. #2

    Default Re: value= space between two fields

    Give this a try:

    <input type="text" name="txtName" value="<%= Trim(objLogin("FirstName")) &
    " " & Trim(objLogin("LastName")) %>">

    I also added "Trim" to remove any spaces before or after the rescordset
    values for the first and last name. So, you should have only one space
    between the first and last name.

    Hope that helps.
    Regards,
    -D-

    "abanana" <webforumsuser@macromedia.com> wrote in message
    news:dgvui7$dks$1@forums.macromedia.com...
    > :confused;
    > Hi,
    > I need some help with this one, I'm confused and I've tried everything
    but the
    > right code.
    > I have a form and is concatenating these two values
    > <input type="text" name="txtName" value="<%= objLogin("FirstName") %> <%=
    > objLogin("LastName") %>">
    > I need to put a space between <%= objLogin("FirstName") %> AND <%=
    > objLogin("LastName") %>
    > So they don't show together
    >
    > Any help will be greatly appreciated,
    > Thanks
    > a-banana
    >


    -D- Guest

  4. #3

    Default Re: value= space between two fields

    ;)
    -D-,
    Thanks so much. It did the trick!
    a-banana
    abanana Guest

  5. #4

    Default Re: value= space between two fields

    No problem...glad to help.

    -D-


    "abanana" <webforumsuser@macromedia.com> wrote in message
    news:dh13dc$7uk$1@forums.macromedia.com...
    > ;)
    > -D-,
    > Thanks so much. It did the trick!
    > a-banana


    -D- Guest

Posting Permissions

  • You may not post new threads
  • You may 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