Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Make Checboxes In To Array In Dreamweaver (PHP)

Guest
Oct 07, 2013 Oct 07, 2013

Copy link to clipboard

Copied

Hi guys, am designing a seat reservation system. i want the check boxes to represent the seats

I want to know how to make each check boxes into array and how to group all the check boxes in a single canvas so that it will store multiple values in one single variable in the database column. there are other texboxes that i want to insert in the same form to get the use booking details.

If am gona store multiple value in one column how do i identify the check box group?

Dreamweaver PHP

<form id="Bookings" name="Bookings" method="post" action="">

  <p>

   

    <input type="checkbox" name="A1[]" value="1" id="A1[]" />

    <input type="checkbox" name="A2[]" value="2" id="A2[]" />

    <input type="checkbox" name="Ab[]" value="3" id="Ab[]" />

    <input type="checkbox" name="A4[]" value="4" id="A4[]" />

     

  </p>

  <p>

    <label for="name"></label>

    <input type="text" name="name" id="name" />

  </p>

  <p>

    <label for="Phone_Number"></label>

    <input type="text" name="Phone_Number" id="Phone_Number" />

  </p>

  <p>

    <label for="E_Mail"></label>

    <input type="text" name="E_Mail" id="E_Mail" />

TOPICS
Server side applications

Views

964
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 07, 2013 Oct 07, 2013

Copy link to clipboard

Copied

Hi,

I would look for a existing script like this:

http://sourceforge.net/projects/freeseat/

and implement it in your site, because it takes years of experience to develop something like that.

These are only a examples I don't know the scripts, but you can look at Github and do a search:

Example Github:

https://github.com/fnazmul/Cinema_Seats_Booking_System

David

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 07, 2013 Oct 07, 2013

Copy link to clipboard

Copied

LATEST

>If am gona store multiple value in one column

Why on earth would you want to store more than one value in a column? You should never design a database like that.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines