• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Laravel insert dynamic input values with radio button

javascriptphplaravel


PHP Snippet 1:

<input type="radio" class="form-check-input" name="moreFields" value="'+i+'">

PHP Snippet 2:

@foreach($lease_stores as $lease_store)
                <div class="form-check form-check-inline">
                <input class="form-check-input" type="radio" name="lease_store_id" id="inlineRadio1" @if($general_details->lease_store_id==$lease_store->id) checked value="{{$lease_store->id}}" 
                @else value="{{$lease_store->id}}"
                @endif>
               <label class="form-check-label" for="inlineRadio2">{{$lease_store->name}} </label>              
              </div>
              @endforeach

Related Snippets

Server-sent events in PHP (without echo or print)

backup files to google drive using PHP

AJAX call fails with SyntaxError: Unexpected end of JSON input

PHPUnit gives error: Target [IlluminateContractsViewFactory] is not instantiable

How to submit a form when page loads using JavaScript?

500 Internal Server Error on Ajax request. Not sure the origin of the problem

Combine multiple columns into an array as one of the key in a results set

PHP if in_array() how to get the key as well?

Woocommerce Checkout - Add conditional field required if one field is filled

How do I Post to .txt document before form submits

Php - Sum up the numbers in an array one by one

How to KeyBy where multiple items have the same key

PHP Warning: Module already loaded in Unknown on line 0

Increase value by 1 on button click

Minimum order amount except for specific shipping method in WooCommerce

About Contact Privacy policy Terms and conditions