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