Javascript Submit does not include Submit Button Value

前端 未结 7 2172
野性不改
野性不改 2020-12-01 14:01

Ok, this is less of a question than it is just for my information (because I can think of about 4 different work arounds that will make it work. But I have a form (nothing

7条回答
  •  遥遥无期
    2020-12-01 14:45

    Here is an idea that works fine in all browsers without any external library.

    HTML Code

    ...........Form elements...............

    Java Script

    Put this code just before closing of body tag

    
    

    PHP Code

    
    

    Note: Please do not name the button "submit" as it may cause browser incompatibility.

提交回复
热议问题