Is it valid to have a html form inside another html form?

前端 未结 14 1999
故里飘歌
故里飘歌 2020-11-22 06:01

Is it valid html to have the following:

14条回答
  •  爱一瞬间的悲伤
    2020-11-22 07:02

    In case someone find this post here is a great solution without the need of JS. Use two submit buttons with different name attributes check in your server language which submit button was pressed cause only one of them will be sent to the server.

    
        
        
    
    

    The server side could look something like this if you use php:

    
    

提交回复
热议问题