TextBox validation problem....Please help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpmel
    New Member
    • Oct 2007
    • 69

    TextBox validation problem....Please help

    Hi all,

    I am have no idea at all how to do this.
    I want a textbox where the first character in the box is a 'M'.The user can see this but cannot change it. Now, i want to allow them to enter 5 more number charachers in the SAME textbox after the 'M' to make up a ID. The IDs must start with 'M' so i just want the users to enter the numbers and have the "M' hard coded into the textbox always.....
    Is this possible?
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Ahhhh, interesting!

    I don't know but my first thought would be to:

    [code=html]
    <form name="" action="">
    <label for="id">Userna me:</label> m<input type="text" id="id" />
    </form>
    [/code]
    Leave the 'm' outside the input, sort of thing.

    :)

    Comment

    Working...