Hi gaurava,
I hope you understand the how client server talks and exchange info with each other .
When you post your information the PHP receive it in $_POST superglobal array .In PHP you use we use following LOC to insert data
$con=mysql_connet(username,password,host)
mysql_select_db('databasename')
mysql_query('insert into table(id,name)values(1,$_POST['name'])
This is how data posted from html form is inserted in mysql table.
|