homepage Welcome to WebmasterWorld Guest from 54.161.240.10
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Php or Asp - One form for all hotels
How do I create one form that will display differently?
lasko




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

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

 

Shakil




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

lasko,

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

Shak

jatar_k




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

You would just need some type of variable to be passed to the form. So the link to your form would look something like

www.site.com/hotelform.php?hotel=113

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?

lasko




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

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.

Thanks:-)

jatar_k




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

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]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved