Generate registration code
In my application there is registration form usign which user can register himself for different event.
After the successful registration i want to give a user a unique registration code (preferablt five digit say 12345)and also want to insert that reg code into database.
Registration code shud be in sequence...means if the second user comes the he shud get the reg code as 12346..and if third comes then 12347 etc... how do i do this?
And also i want to show him a reg slip..which he can take a print out of it...how can i achieve this? printing the registratio slip thru webpage???
Plz help..
|