Page 1 of 1

Form action problem

Posted: Mon Nov 06, 2006 5:07 pm
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?

Posted: Thu Nov 09, 2006 1:20 pm
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