选择对网址的更改

时间:2014-08-24 08:35:23

标签: url select

选择对网址的更改

<form name="language" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
        <select onchange = "document.language.submit()" name="lang">
            <option selected="selected"><?php echo $lang['select-language']; ?></option>
            <option value="en"><?php echo $lang['en']; ?></option>
            <option value="es"><?php echo $lang['es']; ?></option>
            <option value="fr"><?php echo $lang['fr']; ?></option>
         </select>
    </form>

帮助重新制作网址

<a href="">en</a>
<a href="">es</a>
<a href="">fr</a>

0 个答案:

没有答案