Hi Deepika,
If you want to learn how to do this yourself, it might help by first separating out the various parts you'll need; the ingrediants.
1) You'll need an
HTML Form to collect the data.
2) You'll need a way to collect the data from the HTML Form on the server, and that means you'll need to pick a server side language: .NET,
Java, PhP - take your pick. You'll typically find somewhat consistent conventions, at least with dealing with HTML requests, but in this case the most important one is an object that represents the user's request. What you want to do is read the parameters from the user request. For example, if you have a form field with a name of "guest_name", then you would want to read out the "guest_name" parameter.
3) You'll need a place to save the collected data. Here I recommend you poke around for example code on whatever language you are using and whatever database you are using. It's only a google away: for instance: ASP.NET SQL Example, or PhP MySql Example.
After you get through all three steps,
you should have a better understanding of how the pieces fit together. But, before you throw anything out onto the web, be sure to do a little research on form validation, sql injection, and script injection (aka cross-site scripting) to make sure you're not opening up any security hole.