wuschelino22
5 months ago
44
10
Laravel

POP UP View Modal

Posted 5 months ago by wuschelino22

Hello i want to use a Modal for transfer Data in to my Database. Now i have create my POP-UP Windows but it doesnt work when i use variables.

This is my Code:

Launch demo modal
Modal title
×
  <form method="post" action="{{ route('shares.store') }}">
  <div class="form-name">
          @csrf
          <label for="name">Link Name:</label>
          <input type="text" class="form-control" name="name"/>
      </div>
      <div class="form-adress">
          <label for="adress">Link Adresse:</label>
          <input type="text" class="form-control" name="urls"/>
          </div>
      <!--    
      <div class="form-kategorie">
          <label for="categorie">Kategorie:</label>
               <option value='0' selected></option>
               <select name='categorie_id' class='form-control'>
                                <option value='0' selected></option>
                                @foreach($categories as $categorie)
                                <option value='{{ $categorie->id }}'>{{ $categorie->name }}</option>
                                @endforeach

                                   </div>-->
                                   </form>

the commented out code is probably the problem. When I activate this, my modal will not display correctly.

I am an absolute beginner would be nice if someone could help me. Thank you

Please sign in or create an account to participate in this conversation.