Here's a script i'm using ... it echo a dropdown menu ... but i'd like it to be a simple href link instead !
<!--/////////////////////////////
// Language Select Form //
//////////////////////////////-->
<form method="post" name="sellanguages" action="<?php echo "{$SERVER['PHP_SELF']}?{$SERVER['QUERY_STRING']}"; ?>">
<input type="hidden" name="action" value="languages">
<table border="0px" width="100%">
<tr>
<td nowrap="nowrap"><?php echo "{$output['336']}"; ?> </td>
<td width="100%" align="right">
<select size="1" name="language">
<?php
$directory = substr("{$config['language']}",0,strrpos("{$config['language']}","/")+1);
$directorylist = opendir($directory);
while ($filename = readdir($directorylist))
if (!is_dir($filename))
echo "<option value=\"{$directory}{$filename}\">" . substr($filename,0,strrpos($filename,".")) . "</option>\n";
?>
</select>
</td>
</tr>
<tr>
<td colspan="2" align="right" class="xsmall">
<a href="javascript:document.sellanguages.submit();"><?php echo "{$output['337']}"; ?></a>
</td>
</tr>
</table>
</form>