#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    2
    Rep Power
    0
    I am in the works of creating a site that relies heavlily on PHP and MySql. My question is, when I user the following code

    <TD>Properties</TD>
    <TD><Input Type=text Name=properties value=$properties</TD>
    </TR>

    within a page for administration purposes, the text gets truncated within the HTML.
    ie.. properties should equal something like
    "Florida State University" but it gets truncated (within the input tag) to "Florida". It's not a size problem or Database problem, because the correct value is extracted elsewhere, just an HTML Input box problem. Can anybody tell me how to correct it, without using a TEXT AREA tag?

    Thanks,

    Todd
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    <TD>Properties</TD>
    <TD><Input Type=text Name=properties value=$properties</TD>
    </TR>


    You are missing ">" sign here (ie,you are not closing the input box.

    <Input Type=text Name=properties value=$properties>

    In php it should be:

    <TD>Properties</TD>
    <TD><Input Type=text Name=properties value="<? echo $properties?>"></TD>
    </TR>




    ------------------
    SR -
    shiju.dreamcenter.net

    "The fear of the LORD is the beginning of knowledge..."
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    2
    Rep Power
    0
    thanks,

    That did the trick.

    Todd

Similar Threads

  1. loading text file to screen in html or java
    By deesmooth in forum HTML Programming
    Replies: 2
    Last Post: November 23rd, 2003, 11:14 PM
  2. Behavior (HTC) problem with input type text
    By korg in forum HTML Programming
    Replies: 0
    Last Post: November 5th, 2003, 08:46 AM
  3. How to get overflow in this table cell?
    By kippie in forum HTML Programming
    Replies: 4
    Last Post: July 15th, 2003, 05:46 PM
  4. set text in html form text field to be highlit
    By balance in forum HTML Programming
    Replies: 3
    Last Post: May 4th, 2003, 06:34 PM
  5. sql problem
    By rajensama in forum MySQL Help
    Replies: 6
    Last Post: December 23rd, 2001, 02:27 PM

IMN logo majestic logo threadwatch logo seochat tools logo