title: Input checkboxes with different values/names
body: <p>I have one page website with form:
  <a href="https://i.stack.imgur.com/1HUbv.jpg" rel="nofollow noreferrer">Image from my website</a></p>
  <p>When user chose option 1, 2 or 3 and fill out form - then after pressing submit button, the data is entered into the database.</p>
  <p>My database table structure:</p>
  <pre><code>ID | NAME | EMAIL | ADDRESS | CITY | ZIP | PRODUCT
  </code></pre>
  <p>There is no price row, because i cant figure out how to insert price value into checkbox.
  After user pressing submit button, all the data is inserted in the database, everything is fine, but I can't find a solution to add a price to each product in input checkbox field.</p>
  <p>This is my query for insert data:</p>
  <pre><code>if (isset($_POST['submit'])) {
  
  $stmt = $mysqli-&gt;prepare(&quot;INSERT INTO orders (name, address, email, zip, city, product) VALUES (?, ?, ?, ?, ?, ?)&quot;);
  
  $name = $_POST['name'];
  $address = $_POST['address'];
  $email = $_POST['email'];
  $zip = $_POST['zip'];
  $city = $_POST['city'];
  $product = $_POST['product'];
  
  $stmt-&gt;bind_param(&quot;ssssss&quot;, $name, $address, $email, $zip, $city, $product);
  
  $stmt-&gt;execute();
  
  }
  </code></pre>
  <p>And this is my form:</p>
  <pre><code>&lt;form action=&quot;&quot; method=&quot;POST&quot; class=&quot;form__form&quot;&gt;
                &lt;div class=&quot;form__body&quot;&gt;
                  &lt;div class=&quot;form__desc&quot;&gt;Wir liefern innerhalb von 24 Stunden. Mit 100% Geld Zurück Garantie
                  &lt;/div&gt;
                  &lt;div class=&quot;form__subtitle form__subtitle_top&quot;&gt;Sofort lieferbar!
                  &lt;/div&gt;
                  &lt;div class=&quot;form__inputs&quot;&gt;
                      &lt;input class=&quot;form__input&quot; type=&quot;text&quot; name=&quot;name&quot; placeholder=&quot;Vor-und Nachname&quot; required=&quot;required&quot; /&gt;
                      &lt;input class=&quot;form__input&quot; type=&quot;text&quot; name=&quot;email&quot; placeholder=&quot;Email&quot; required=&quot;required&quot; /&gt;
                      &lt;input class=&quot;form__input&quot; type=&quot;text&quot; name=&quot;address&quot; placeholder=&quot;Adresse&quot; required=&quot;required&quot; /&gt;
                      &lt;input class=&quot;form__input&quot; type=&quot;text&quot; name=&quot;zip&quot; placeholder=&quot;Postleitzahl&quot; required=&quot;required&quot; /&gt;
                      &lt;input class=&quot;form__input&quot; type=&quot;text&quot; name=&quot;city&quot; placeholder=&quot;Stadt&quot; required=&quot;required&quot; /&gt;
                  &lt;/div&gt;
                  
  &lt;div class=&quot;form__subtitle&quot;&gt;Produkt&lt;/div&gt;
                  
                  &lt;div class=&quot;form__checks&quot;&gt;
                    &lt;label class=&quot;check&quot;&gt;&lt;input class=&quot;check__input&quot; type=&quot;radio&quot; value=&quot;Product1&quot; name=&quot;product1&quot; checked=&quot;checked&quot; /&gt;&lt;span class=&quot;check__view&quot;&gt;&lt;/span&gt;&lt;span class=&quot;check__legend&quot;&gt;1 Flasche, 60 Pillen für 150 €&lt;/span&gt;
                    &lt;/label&gt;
                    &lt;label class=&quot;check&quot;&gt;&lt;input class=&quot;check__input&quot; type=&quot;radio&quot; value=&quot;Product2&quot; name=&quot;product2&quot; /&gt;&lt;span class=&quot;check__view&quot;&gt;&lt;/span&gt;&lt;span class=&quot;check__legend&quot;&gt;3 Flaschen, 180 Pillen für 300 €&lt;/span&gt;
                    &lt;/label&gt;
                    &lt;label class=&quot;check&quot;&gt;&lt;input class=&quot;check__input&quot; type=&quot;radio&quot; value=&quot;Product3&quot; name=&quot;product3&quot; /&gt;&lt;span class=&quot;check__view&quot;&gt;&lt;/span&gt;&lt;span class=&quot;check__legend&quot;&gt;6 Flaschen, 360 Pillen für 450 €&lt;/span&gt;
                    &lt;/label&gt;
                  &lt;/div&gt;
                  
                  &lt;div class=&quot;form__note&quot;&gt;1 Monat nach der Erstlieferung erhalte ich monatlich im Abonnement 1 Flasche zu 149 €. Ich kann das Abonnement jederzeit kündigen.
                  &lt;/div&gt;
  
                  &lt;label class=&quot;one-check&quot;&gt;
                      &lt;input type=&quot;checkbox&quot; class=&quot;one-check__input&quot; /&gt;
                      &lt;span class=&quot;one-check__view&quot;&gt;&lt;/span&gt;
                      &lt;span class=&quot;one-check__legend&quot;&gt;Ja, meine Angaben sind richtig und vollständig, ich akzeptiere die &lt;a href=&quot;#&quot; target=&quot;_blank&quot;&gt;allgemeinen Geschäftsbedingungen&lt;/a&gt;&lt;/span&gt;
                  &lt;/label&gt;
  
                &lt;/div&gt;
                &lt;div class=&quot;form__bottom&quot;&gt;
                  &lt;div class=&quot;form__note form__note_bottom&quot;&gt;Mit Klick auf „Kaufen“ bestellen Sie verbindlich.
                  &lt;/div&gt;
                  &lt;div class=&quot;form__group&quot;&gt;
                    &lt;button class=&quot;button button_full&quot; type=&quot;submit&quot; name=&quot;submit&quot;&gt;&lt;span&gt;Kaufen&lt;/span&gt;
                    &lt;/button&gt;
                    &lt;div class=&quot;form__guard&quot;&gt;Pillen werden in einer anonymen und subtil- Paket gesendet. (Pills passen in die Mailbox)
                    &lt;/div&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/form&gt;
  </code></pre>
  <p>My problem is that product 1, product 2 and product 3 - all 3 have their price.
  Product 1 - 150EUR, Product 2 - 300EUR, Product 3 - 450EUR.
  How can I add a price to the input (checkbox) fields? So I can create an invoice, because right now it only shows the product name, no price.</p>