07mackenzie
09-10-2006, 12:43 AM
Hi,
I'm trying to make it so that the username field on my phpBB board is automatically set by the first and last name of the user. (I'm asking here, because its all HTML with what Im interested in)
So I have:
First Name: [textbox1]
Last Name: [textbox2]
Username: [textbox3]
How can I make it so that once First and Last name fields are filled, textbox 3 Username value will now be [textbox1 textbox2]
So example, if the user fills out the following information:
First Name: [John]
Last Name: [Doe]
So the username should fill out as
Username: [John Doe]
(with a space in between first and last name). And also, how can I make sure that Username (textbox3) is not editable? So that its value can only be changed when the other two are changed?
I don't mind using a button or whatever to make the function happen, but it would be coolest if it updated as it was typed.
Thanks!
I'm trying to make it so that the username field on my phpBB board is automatically set by the first and last name of the user. (I'm asking here, because its all HTML with what Im interested in)
So I have:
First Name: [textbox1]
Last Name: [textbox2]
Username: [textbox3]
How can I make it so that once First and Last name fields are filled, textbox 3 Username value will now be [textbox1 textbox2]
So example, if the user fills out the following information:
First Name: [John]
Last Name: [Doe]
So the username should fill out as
Username: [John Doe]
(with a space in between first and last name). And also, how can I make sure that Username (textbox3) is not editable? So that its value can only be changed when the other two are changed?
I don't mind using a button or whatever to make the function happen, but it would be coolest if it updated as it was typed.
Thanks!