"; } if ($ChkInsert){ # insert Database $mid = md5(uniqid(rand())); $mregis_date = date("YmdHi"); $sql = "insert into MEMBER (mid, mfname, mlname, memail, mpwd, mlocation, mnation, "; $sql .= "mgender, medu, mage, mcomment, mstatus, mregis_date) values('$mid', '$fname', '$lname', "; $sql .= "'$email', '$pwd', '$location', '$nation', '$gender', '$edu', '$age', '$comment', 'A', '$mregis_date')"; mysql_query($sql); mysql_close($db); header("Location: register_thankyou.html"); } } ########################################## Select Location ########################################## unset($opt_location); $sql = "select lid, l_txt from LOCATION order by lid"; $result = mysql_query($sql); while ($row = mysql_fetch_assoc($result)){ if ($row['lid'] == "TH"){ $opt_location .= "\n"; } else{ $opt_location .= "\n"; } } ########################################## Select Gender ########################################## unset($opt_gender); $sql = "select gid, g_txt from GENDER order by gid"; $result = mysql_query($sql); while ($row = mysql_fetch_assoc($result)){ if ($row['gid'] == "1"){ $opt_gender .= "\n"; } else{ $opt_gender .= "\n"; } } ########################################## Select EDUCATION ########################################## unset($opt_edu); $sql = "select eduid, edu_txt from EDUCATION order by eduid"; $result = mysql_query($sql); while ($row = mysql_fetch_assoc($result)){ if ($row['eduid'] == "3"){ $opt_edu .= "\n"; } else{ $opt_edu .= "\n"; } } ######################################### Select AGE ########################################## unset($opt_age); $sql = "select arid, ar_txt from AGE_RANGE order by arid"; $result = mysql_query($sql); while ($row = mysql_fetch_assoc($result)){ if ($row['arid'] == "5"){ $opt_age .= "\n"; } else{ $opt_age .= "\n"; } } mysql_close($db); ?> Learn Thai online for Free
line_head
headline_head2
line_white
learn Thai on youtube
Thai language VDO
Thai vocabulary
practice Thai Tone
bullet  Tones
line
Thai vocabulary
bullet  Adjectives
bullet  Verbs
bullet  Pronouns
bullet  Questions
line
Thai vocabulary
bullet  Animals
bullet  Bank
bullet  Drinks & Beverages
bullet  Parts of the body
bullet  Classifiers
bullet  Clothes
bullet  Colors
bullet  Countries
bullet  Days & Months
bullet  Directions
bullet  Feelings & Emotions
bullet  Family & People
bullet  Foods
bullet  Fruits
bullet  Habits
bullet  Hobbies & Interests
bullet  Household
bullet  Jobs & Careers
bullet  Numbers
bullet  Office
bullet  Period of time 1
bullet  Period of time 2
bullet  Places
bullet  On the road
bullet  Rooms
bullet  Weathers & Seasons
bullet  Shops
bullet  Sickness
bullet  Sports
bullet  Taste of food
bullet  Vehicles
line

 

 
  

   First name : *
   Last name : *

   E-mail address : *
   Password : *
   Confirm password : *

 
   Location :
   (Where do you live now?)
*
   Nationality :
*

   Gender:

   Education :

   Age :

   The reason of learning Thai :

                     clear