简体   繁体   中英

Laravel 7: Problems with request in registration form

Hello i have a problem with the registration in laravel.

In my register.blade.php there's a table that the user fills with a 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

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. 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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM