HTML form with two submit buttons and two “target” attributes

前端 未结 15 2298
暗喜
暗喜 2020-11-29 20:02

I have one HTML

.

The form has only one action=\"\" attribute.

However I wish to have two different target=\"\" attribu

15条回答
  •  忘掉有多难
    2020-11-29 20:18

    It is do-able on the server side.

    
    
    

    and in my node server side script

    app.post('/', function(req, res) {
    if(req.body.signin == "email_signin"){
                function(email_login) {...} 
            }
    if(req.body.signin == "fb_signin"){
                function(fb_login) {...}    
    
    
            }
        }); 
    

提交回复
热议问题