I am working on a new web site for hotel accommodation and have created a normal form using my hostings CGI script.
However It wil require each person to select the hotel they want to enquire (their will be a lot of hotels). How can I make one form using asp or php so that when they click on a specific hotel they will be taken to the same form but the heading and title will be of that particular hotel.
I have also seen another web site that has many property pages that uses an asp script and allows the web site to have one form for about 1000 different E-mail addresses.
Can anyone advise me what I could do? but I am afraid I am a complete beginner, only used some cgi scripts and php scripts and have not much knowledge of Mysql.
You would just need some type of variable to be passed to the form. So the link to your form would look something like
Then when your form is loaded it would look at the value of the hotel variable in the GET string and then query a database looking for the information about hotel number 113(this should be the id/primary key of the hotel table in the db).
It would then load that information into variables such as title, email, address, whatever.
Yes, It does make some sense I have seen many of the ID's strings on the end of url's and with so many scripts out their I am unsure which one to use.
Also would I have to use Mysql database and is it that difficult to use? I think I have seen some programs that will help you create databases for Mysql my hosting company uses Mysql and I know inside me that I will have to get to grips with using Mysql databases if I want to advance.
I am always using scripts that don't use Mysql and whenever I see one I feel Mmmm.. not for me this one! Time after time this happens and I will just have to get to know how to use one.