1. 论坛系统升级为Xenforo,欢迎大家测试!
    Dismiss Notice

请帮帮忙,可能要用JS吧

Discussion in '前端开发' started by BoBo, Sep 14, 2006.

  1. BoBo

    BoBo New Member

    Joined:
    Sep 29, 2005
    Messages:
    929
    Likes Received:
    0
    HTML:
    <form method="get" [COLOR="Red"]action=""[/COLOR] name="form">
    <tr>
    <td height="23">
    身份证号码:
    <input type="text" name="[COLOR="red"]Number[/COLOR]" size="18" value="">
    &nbsp;&nbsp; 
    <input name="submit" type="submit" value="提交">
    </td>
    </tr>
    </form>
    

    我希望提交后action里应该是=Number里的值的加上后缀.html

    应该怎么做?

    就是说输入99999999提交后地址栏里显示http://www.aaa.com/999999.html
     
  2. Ulysses

    Ulysses New Member

    Joined:
    Feb 5, 2006
    Messages:
    10,018
    Likes Received:
    16
    HTML:
    <form ... onsubmit="this.action = this.Number.value + '.html'; this.submit();">