HTML Submit-button: Different value / button-text?

前端 未结 5 1863
感情败类
感情败类 2020-11-29 21:02

I\'d like to create an HTML form submit button with the value \'add tag\', however, the web page is in Swedish, so I\'d like to have a different bu

5条回答
  •  一向
    一向 (楼主)
    2020-11-29 22:05

    Following the @greg0ire suggestion in comments:

    
    

    In your server side, you'll do something like:

    if (request.getParameter("add_tag") != null)
        tags.addTag( /*...*/ );
    

    (Since I don't know that language (java?), there may be syntax errors.)

    I would prefer the

提交回复
热议问题