Connecting Tech Pros Worldwide Forums | Help | Site Map

how to generate a number in a textfield automatically

Member
 
Join Date: Jan 2007
Posts: 32
#1: Feb 28 '07
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's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#2: Feb 28 '07

re: how to generate a number in a textfield automatically


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:
Member
 
Join Date: Jan 2007
Posts: 32
#3: Mar 1 '07

re: how to generate a number in a textfield automatically


Quote:

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?
Reply