title: how to save data from textboxes to database on submit button click using php
body: <p>i need to transfer the data from textboxes designed in HTML to Mysql database using php. I tried a lot but didnt work...so finally if anyone has a working code already for it then please let me know.
  i just have two textboxes named "username" and "password" and a submit button.
  I have already created a db [dbname: userdemo, tablename: users] but no results. Please use OOPs concept not procedural.
  Any kind of help will be appreciated!!!</p>