FlashStarZ 2021-11-18 03:06 采纳率: 0%
浏览 31

form表单利用button提交后弹出的页面出现错误


    <body>
        <div class="container_form container--signup">
            <form action="took.jsp" class="form" id="form1" method="post">
                <h2 class="form_title">Sign Up</h2>
                <input type="text" placeholder="User" class="input" name="user_name"/>
                <input type="password" placeholder="PassWord" class="input" name="pass_word"/>
                <input type="password" placeholder="Confirm PassWord" class="input" name="C_password"/>
                <input type="text" placeholder="Telephone Number" class="input" name="T_number"/>
                <button class="btn">Sign Up</button>
            </form>
        </div>
    </body>

为什么明明我在html <input>标签中都加了name值,method也变为了post,最后页面显示:

img

求解答!!我实在想不出怎么解决了。

  • 写回答

1条回答 默认 最新

  • 关注

    把button的type设置为submit。

    评论

报告相同问题?

问题事件

  • 创建了问题 11月18日

悬赏问题

  • ¥15 stm32u535芯片usb hid custom类接收数据有问题
  • ¥20 quartus功能仿真
  • ¥15 传染病最优控制问题,控制为什么没起作用
  • ¥15 ue5.3 pico打包失败 求帮助
  • ¥15 请教,这是用chatgpt写的CAD LISPD脚本,需求是画一个由双直线组成的矩形
  • ¥50 微信小程序 成功包奶茶啊
  • ¥15 计算机博弈的六子棋代码
  • ¥15 在Fetch API中传送的参数为何不起作用?
  • ¥15 问题遇到的现象和发生背景 360导航页面千次ip是20元,但是我们是刷量的 超过100ip就不算量了,假量超过100就不算了 这是什么逻辑呢 有没有人能懂的 1000元红包感谢费
  • ¥30 计算机硬件实验报告寻代