Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Php or Asp - One form for all hotels

How do I create one form that will display differently?



7:26 pm on Jan 27, 2003 (gmt 0)

10+ Year Member

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.

My hosting is compatible for Asp, Php and Pearl

I would be very gratefull for any advice

Thank you


7:28 pm on Jan 27, 2003 (gmt 0)


sorry that I can not help as I am NOT a developer, however I am sure solutions like this are out there.

maybe a posting in the Commercial Exchange would provide some interesting feedback or paid help.

just a thought



7:32 pm on Jan 27, 2003 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

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.

Make some sense?


8:02 pm on Jan 27, 2003 (gmt 0)

10+ Year Member

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.



8:11 pm on Jan 27, 2003 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

look into phpmyadmin for managing mysql it flattens the learning curve quite a bit.

There is another discussion going on right now that might be relevant
My First Database [webmasterworld.com]


Featured Threads

Hot Threads This Week

Hot Threads This Month