Osclass forums
Support forums => Tips, tricks, and tutorials => Topic started by: sanam on June 28, 2014, 01:30:22 pm
-
Hiiii,
I would like to add some additional field at the time of registration.I modified code in user-register.php ,but i don't know how to connect this field to database.I want these extra field as radio button to choose the user type.
Can anyone tell me the tips for this.
-
if you wonte tu use a chek box, add a hidden inpute lk this <input type ="hidden" name="b_company"" id="b_company" value ="0">
and add a js code to chnache the value wen chekbox change,
chebox value = 1 --->company
check value = 0 --->private user
this all Osclass do the last off work
but in my site i use a select it is mors simple
<select name="b_company" id="b_company"><option value="0">User</option><option value="1">Entreprise</option></select>
good luck
-
Thanku very much for your reply.I ll try it out :)
-
I found it now i added some objects to array in user.form.php. Now it working perfectly... 8 ;)
-
user.form.php is a cor of osclass, remember that if you update osclass you lose the modification
-
sample code can someone throw?