1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

请帮帮忙,可能要用JS吧

本帖由 BoBo2006-09-14 发布。版面名称:前端开发

  1. BoBo

    BoBo New Member

    注册:
    2005-09-29
    帖子:
    929
    赞:
    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

    注册:
    2006-02-05
    帖子:
    10,018
    赞:
    16
    HTML:
    <form ... onsubmit="this.action = this.Number.value + '.html'; this.submit();">