[英]Laravel 7: Problems with request in registration form
Hello i have a problem with the registration in laravel.您好,我在 laravel 中的注册有问题。
In my register.blade.php there's a table that the user fills with a js function.在我的 register.blade.php 中有一个表格,用户用 js function 填充。 When i click on submit button i need to fetch datas from that table but i don't have a key mapping the table in the $request variable当我单击提交按钮时,我需要从该表中获取数据,但我没有在 $request 变量中映射表的键
That's the part of the code where i put the table:那是我放置表格的代码部分:
<table class="table align-content-center" id="compList" name="compList">
<thead>
<tr>
<th scope="col">Competence</th>
<th scope="col">Level</th>
<th scope="col">Remove</th>
</tr>
</thead>
</table>
You should use form attribute to fetch data from it.您应该使用 form 属性从中获取数据。 You can rewrite this part code as follows:您可以按如下方式重写此部分代码:
<form name="compList" class="table align-content-center" id="compList">
<thead>
<tr>
<th scope="col">Competence</th>
<th scope="col">Level</th>
<th scope="col">Remove</th>
</tr>
</thead>
</form>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.