Hello All.
I created a login form, which has two fields named "USER ID " & "PASSWORD".
Here, i took 8 character length for USER ID field.
I would like to take "THE" as first three characters as constant in USER ID field.
So, is it possible to do it?

Regards
BHANU

do you want to add the "THE" string constant in front of your string read in USER ID field? or what exactly are you trying to do?

You could do something like this:

prompt = "Enter your five character user ID; "
user_id = 'THE' + raw_input(prompt)

Yes, tzushky. You are correct.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.