how to generate a number in a textfield automatically

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anuragpj
    New Member
    • Jan 2007
    • 32

    #1

    how to generate a number in a textfield automatically

    I want that in the number textfield a number is automatically generated, and If there is a number in the table of the database the next number is generated in the number textfield.
    How can I do this?
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    What number textfield are you talking about?
    Is it a html form field, a php text variable, a database column?
    Please give us more exact information on what you want

    Ronald :cool:

    Comment

    • anuragpj
      New Member
      • Jan 2007
      • 32

      #3
      Originally posted by ronverdonk
      What number textfield are you talking about?
      Is it a html form field, a php text variable, a database column?
      Please give us more exact information on what you want

      Ronald :cool:
      I have a table in a database which has a column 'serialnum' . I have created a php to insert values into the table. Now I want that when a user open that form a number is automatically generated in the textfield of serial number and if there is already a entry in the table the number next to that entry is generated in the textfield.
      How can I do this?

      Comment

      Working...