krrahman wrote:Could you please provide an example ?
CGI Programming including PHP Programming (incl. storing and retrieving Data into a SQL Database) is a very complex subject, you cannot simply provide an example and thats it. You should look for tutorials and or literatur about "HTML & CGI and PHP, including MySQL Programming" or similar.
You have to learn how forms are working, what is a HTTP Request (especially the meaning of a POST request), how does HTTP work (how does a webserver like Apache communicate with a client browser), how does CGI work (how to transfer data via forms and how to process the incoming data on the server, which programming language to use - here it is PHP, but there is also Python, Perl etc.), how does an SQL Database work, what is a SELECT Statement, what is a table, how does PHP communicate with an SQL Server, and and and and and and ... you may have to learn quite a lot in the next months.