Results 1 to 6 of 6

Thread: Bizarre Input Box Scenario

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Chesterfield, UK
    Posts
    298

    Bizarre Input Box Scenario

    When I am trying to look at my records from my "Events" database via my ASP I record strange happenings.

    Code:
    <% 
    Response.Write "<input name ='AddressField' size='40' value=" & Events("Address1")&">"
    %>
    The results are that when I view the record It seems to chop off some of the value.


    Like if the Address1 Field had a value of " My Address Field", I would get a returned value of "My"

    But if I use the following of :

    Code:
    <% 
    Response.Write  Events("Address1")
    %>
    Then "My Address Field" is returned, I have tried settings the MAXLENGTH of the input box and that didn't work.

    So I am kinda lost for ideas right now.

    Any help would be good!


    Cheers.

  2. #2
    Lively Member Base's Avatar
    Join Date
    Aug 2001
    Location
    The Netherlands
    Posts
    65
    My geuss is that you're code isn't wrong. There is only one problem that the value cannot contain a "space" so automatically chopping it to "My" in your case. May be you could try storing the value in a string.

    Good luck
    Ok

  3. #3
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810

    Try this

    <%
    Response.Write "<input name ='AddressField' size='40' value=" & Events("Address1")&">"
    %>
    Code:
    <% 
    Response.Write "<input name ='AddressField' size='40' value=" & Events(Address1) &">"
    %>

    prog_tom
    JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
    http://physics.sviesoft.com/forum

  4. #4
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810

    Post Database

    What database do you use?

    prog_tom
    JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
    http://physics.sviesoft.com/forum

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    What did you change?
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Chesterfield, UK
    Posts
    298

    Strange

    Code:
    <%
    Response.Write "<td width='15%' align='right'><strong><FONT face=Tahoma color=white size=2>Company Branch:</FONT></strong></td>"
    Response.Write "<td width='85%'><input value='"& Events("CompanyBranch")&"'size='40' name='CompanyBranch'><FONT face=Tahoma color=white size=2></FONT></td>"     
    %>
    The above code works, which is basically the same as I originally put in as the code, but the order in which I have placed the 'name' & 'size' properties have been jumbled around?

    Strange if you ask me, but I am sure there is a valid reason


    Thanks for your posts!

Posting Permissions

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



Click Here to Expand Forum to Full Width