Form action problem

Discuss here how to configure hoteldruid and better use its features.

Moderator: marco

Post Reply
rnomis
Posts: 5
Joined: Mon Oct 17, 2005 4:38 pm
Location: England

Form action problem

Post by rnomis »

Hi Marco.
I am trying to integrate Php-Residence with a script I have written that detects the users' language and supplies the page content from language files. It also allows the user to change the language if required. I need to produce an availability_template for each language en, de, ru and lv which is no problem.

I have used an include for the availability_template.php file in my script and the first part works fine. The problem I have is that the booking page is on book.php?language=de or =en or =ru etc. depending on the language selected and not book.php which is the post action from the form. Is there any way I can change this for each language or change the $PHP_SELF part of the file?
Just when you thought you had made it idiot proof, God creates a better idiot...
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

If you edit by hand the created template there is the variable $var_page_name where you can set the page name.

Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
Post Reply