flame
07-17-2002, 02:13 PM
Basically, i have written rules.php which uses templates to open the rules in different languages using a drop down menu in the main template.
The problem im having is i have no idea how to get the dropdown menu to send the relevant language back to rules.php and have it show the correct template.
I tried using a post method with a hidden input with value "action" then on the rules.php script have it open the language file depending on wotever "action" was selected.
if ($action=="english") {
eval("dooutput(\"".gettemplate('rules_english')."\");");
}
Been playing around with it for ages now and cant seem to get it to work.
Any help/Hints would be appreciated
Flame
The problem im having is i have no idea how to get the dropdown menu to send the relevant language back to rules.php and have it show the correct template.
I tried using a post method with a hidden input with value "action" then on the rules.php script have it open the language file depending on wotever "action" was selected.
if ($action=="english") {
eval("dooutput(\"".gettemplate('rules_english')."\");");
}
Been playing around with it for ages now and cant seem to get it to work.
Any help/Hints would be appreciated
Flame