hi friends again i have a problem with this.i have a form in that form i am having a dropdownlist,if i select a particular company name,it will redirect to another page and generate a empcode automatically as per the company name example TCS001.my problem is, if the person filling the employee form ,in that form i having an city name in dropdownlist if the user select the particular city name like Mumbai in the dropdown ,i want to make the empcode as TCS/MUM/001,i tried but its not working properly..pls help me..