Make Checboxes In To Array In Dreamweaver (PHP)

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" />

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

Similar Messages

  • Can you make a e-commerce website using dreamweaver?

    can you make a e-commerce website using dreamweaver?

    Sure, if you have the requisite coding skills.  Out of the box, DW has no such module.
    Best advice, use a 3rd party shopping cart like PayPal or Asecurecart.net. Or purchase a DW e-commerce extension like Cartweaver.  Or, use Business Catalyst to build your site (includes hosting & shopping cart module).
    Nancy O.

  • PHP Arrays in Dreamweaver

    Hi,
    First off, I hope this is the proper place to post this
    question... I've been looking all over for an answer and have yet
    to find one.
    I'm currently working on a project where I need to submit an
    array of intergers into a database. The user makes a number of
    selections on a form of check boxes, the form is submitted, and an
    array (should be) stored in a column within my database. I'm
    currently having issue though with only the value of the final
    checked box appearing in my database. I'm wondering if anyone can
    help as I've checked all over and can not find an appropriate
    answer. Thank you in advance.

    sacomoney wrote:
    > I'm sure it's not overly complicated but I
    > guess I'm just not ready to grasp it yet.
    It's not overly complicated, but you have come face-to-face
    with a
    common problem: it appears that you're relying on Dreamweaver
    to
    generate PHP for you without really understanding how the
    code works.
    Once you start doing anything not covered by the basic server
    behaviors,
    you need to have a good knowledge of PHP in order to adapt
    the code
    successfully. You have made a brave attempt, but it won't
    work like that
    in a million years.
    The code that I gave you needs to go at the top of the page
    like this:
    <?php
    if (isset($_POST['cb_minorcat'])) {
    $_POST['cb_minorcat'] = implode(',', $_POST['cb_minorcat']);
    } else {
    $_POST['cb_minorcat'] = null;
    ?>
    Then you need to change the code created by Dreamweaver from
    this:
    GetSQLValueString($_POST['cb_minorcat'] ? "true" : "",
    "defined","'Y'","'N'")
    to this:
    GetSQLValueString($_POST['cb_minorcat'], "text")
    Dreamweaver's GetSQLValueString() function prepares the form
    values for
    safe insertion into the database. What the first block of
    code does is
    change the array into a string. Therefore, you need to pass
    $_POST['cb_minorcat'] to GetSQLValueString() as text.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • Dreamweaver, php-xml bug

    I have a simple php file that generates an xml file. When I
    save this file and close it, dreamweaver changes some of the
    formatting when I reopen the file. Specifically, dreamweaver
    de-capitalizes some of the text in the document.
    Example:
    The code:
    $this->xml_request = '
    <PickupType>
    <Code>01</Code>
    </PickupType>';
    is converted to
    $this->xml_request = '
    <PickupType>
    <code>01</code>
    </PickupType>';
    after the file is saved, closed, and reopened. Note the Code
    tag has been chanced to code, which breaks the API I'm working
    with. This xml is always within php code as above as I've been
    using it..
    This happens on several fields, Code and Address so far, and
    happens to the same fields every time, no matter the document, or
    how many times they appear in the document. No other tag names are
    affected as far as I've found. I've tried completely uninstalling,
    removing all configuration files, and re-installing Dreamweaver and
    get the exact same affect every time.
    I really need to get this bug / mis-configuration fixed. Any
    suggestions would be greatly appreciated.
    This is CS3 (DW9) running on XP Pro.

    jestep,
    In Preferences > Code Format, make sure that the "Override
    case of"
    settings for "Tags" is turned off.
    HTH,
    Randy
    > I have a simple php file that generates an xml file.
    When I save this file and
    > close it, dreamweaver changes some of the formatting
    when I reopen the file.
    > Specifically, dreamweaver de-capitalizes some of the
    text in the document.
    >
    > Example:
    >
    > The code:
    > $this->xml_request = '
    > <PickupType>
    > <Code>01</Code>
    > </PickupType>';
    >
    > is converted to
    >
    > $this->xml_request = '
    > <PickupType>
    > <code>01</code>
    > </PickupType>';
    >
    > after the file is saved, closed, and reopened. Note the
    Code tag has been
    > chanced to code, which breaks the API I'm working with.
    This xml is always
    > within php code as above as I've been using it..
    >
    > This happens on several fields, Code and Address so far,
    and happens to the
    > same fields every time, no matter the document, or how
    many times they appear
    > in the document. No other tag names are affected as far
    as I've found. I've
    > tried completely uninstalling, removing all
    configuration files, and
    > re-installing Dreamweaver and get the exact same effect
    every time.
    >
    > I really need to get this bug / mis-configuration fixed.
    Any suggestions would
    > be greatly appreciated.
    >

  • Dreamweaver/PHP newbie needs help

    I have bought a price comparison script. Unfortunately the
    script is coded in PHP and I do not know PHP.
    Over the last couple of years I taught myself HTML and the
    tools necessary to developed a number of simple shopping sites for
    my businesses using Dreamweaver; Fireworks; & Flash. – I
    know these tools reasonably well.
    So far I have installed WampServer 2.0f [12/16/08]
    Includes : Apache 2.2.11; MySQL 5.1.30; PHP 5.2.8
    Wamp installs in c > wamp
    All features up and running and tested using simple test
    files such as time display – all installed in c > wamp
    > www
    I then did a ‘Get’ and placed the local version
    of the script to c > wamp > www
    Setup a test server in Dreamweaver:
    Local Root folder and testing Server Folder:
    C:\wamp\www\lowprice\
    Http Address:
    http://www.lowprice.co.za/
    URL Prefix:
    http://localhost/lowprice/
    I started all services on the wampserver
    and opened the main file: index.tpl.php in Dreamweaver.
    I was hoping for a beautiful display of the home page, but
    only get dotted lines & php tags - no graphical display at all.
    What I need to know at this stage:
    1) Did I do anything wrong while setting up the test server
    above
    2) Do you think I’m nearly there and if so do you have
    any advice as to how to get there.
    3) If I’m still miles away I’ll keep on slogging
    through the training and support sites and even buy a book if need
    be. If you have any advice – please tell me.
    Just a short summary or a couple of hints as to what
    direction to go. I know you cannot teach me PHP.
    Thanx you

    biltong08 wrote:
    > I have bought a price comparison script. Unfortunately
    the script is coded in
    > PHP and I do not know PHP.
    Buying scripts is not necessarily a bad thing, but buying one
    written in
    a language you don't understand puts you at risk. First, you
    can't adapt
    it if it doesn't do what you want. More important, you're
    entirely in
    the hands of the developer if it turns out there's a security
    bug in the
    script. If you want to use PHP, you should at least learn the
    basics.
    > I was hoping for a beautiful display of the home page,
    but only get dotted
    > lines & php tags - no graphical display at all.
    You wouldn't. Dreamweaver is a development environment, where
    you write
    and edit code. However, if you have set up a testing server,
    you can
    view the output (but not edit it) in Live View. Just click
    the Live View
    button in the Document toolbar. Live View is available in
    Dreamweaver
    CS4 only. In earlier versions, use the Live Data view button
    in the
    Document toolbar.
    > What I need to know at this stage:
    > 1) Did I do anything wrong while setting up the test
    server above
    Your testing server definition looks OK.
    > 2) Do you think I?m nearly there and if so do you have
    any advice as to how to
    > get there.
    Try Live View or Live Data view.
    > 3) If I?m still miles away I?ll keep on slogging through
    the training and
    > support sites and even buy a book if need be. If you
    have any advice ? please
    > tell me.
    You can start with the PHP online documentation:
    http://docs.php.net/manual/en/getting-started.php
    The documentation is very useful, but it can be overwhelming
    if you
    don't know what you're looking for (it's rather like trying
    to learn a
    foreign language from a dictionary). I have written several
    books about
    PHP, details of which you can find on my website (see link in
    my
    signature). The Dreamweaver-related ones have a short crash
    course in
    PHP syntax, and then concentrate on using the PHP server
    behaviors built
    into Dreamweaver. "PHP Solutions" teaches PHP through a
    series of
    practical exercises and projects. However, I have no idea if
    my books
    would be of practical help to you in deciphering the script
    you have bought.
    I noticed that the filename you gave contained "tpl". That
    usually
    suggests that the file is written in a PHP templating
    language called
    Smarty. If so, you need Smarty installed (
    http://www.smarty.net/).
    Although I have used Smarty, I don't like it because it adds
    an extra
    level of complexity. It's intended to make it easier for
    non-programmers
    to edit pages without touching the underlying PHP. However,
    if you're
    the only person working on the project, it means you need to
    learn two
    languages instead of one. To my mind, it adds an unnecessary
    burden.
    Good luck.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • Dreamweaver PHP connection vs. My manual connection?

    I have seen what Dreamweaver (I am using CS6) can do for PHP development, and find it to be a great help. I am trying to understand how to work with files that I have hand coded and created a database connection via constants that live in a config file. My database class uses them as the values for its connection. I see that when you create a database in Dreamweaver you get a file that seems to be what dreamweaver needs to recognize it as a connection. Should I leave this inplace and try to work with what I have or should I try to remove or configure it to be the only connection? It does not seem to hurt anyting to leave them both but I don't want to be missing out on features because I am not using best practices. I can't seem to find any documentation on how to combine this Dreamweaver style connection with my manual connection. The code Dreamweaver makes is like this for it's database connection
    <?php# FileName="Connection_php_mysql.htm"# Type="MYSQL"# HTTP="true"$hostname_photo_gallery_dw = "localhost";$database_photo_gallery_dw = "grocery_land_db";$username_photo_gallery_dw = "gladmin";$password_photo_gallery_dw = "bw46210";$photo_gallery_dw = mysql_pconnect($hostname_photo_gallery_dw, $username_photo_gallery_dw, $password_photo_gallery_dw) or trigger_error(mysql_error(),E_USER_ERROR); ?>
    The way my PHP config file that my class uses it configured is like so:
    <?php     // Database Constants    defined('DB_SERVER') ? null : define("DB_SERVER", "localhost");    defined('DB_USER')   ? null : define("DB_USER", "gladmin");    defined('DB_PASS')   ? null : define("DB_PASS", "bw46210");    defined('DB_NAME')   ? null : define("DB_NAME", "grocery_land_db");?>
    Thanks for any knowledge.

    Your existing approach will  work fine going forward - the only difference you will see between the two is that the DW approach actually MAKES a persistent connection with the database (using the mysql_pconnect() command) and throws an error if that connection fails. I assume you are doing that later in your code....

  • Issue in Dreamweaver PHP pages from the PHP template

    I am learning to develop and publish a web catalog with a shopping cart feature attached. I am using PHP and MySQL as the tools to build this data driven website. However after creating the catalog list within the PHP template and needing the list as the menu within the sidebar of the webpages, the catalog list shows in the PHP template in Dreamweaver. But once I try to create a sub page from the PHP template, the list and all the contents does not show in the preview. After much checks, there is a issue with the sidebar class of the div, the issue is that a message shows that "Any content that does not fit in a fixed-width or -height box causes the box to expand to fit the content rather than letting the content overflow." I have tried to put the overflow:auto or overflow:hidden but to no success. How can get the catalog list to show without manually entering the over 50 categories that is already entered in the MySQL database? The template uses the 2 column fixed, sidebar, header and footer layout.

    It's a little hard to understand your question and its context. Can you please upload this page and give us a link so we can see what you are describing?

  • Setting up MAMP and Dreamweaver - PHP - URL Not Found

    Hello,
    I'm running into a seemly simple problem, but I just can't figure out the cause. I wanted to test a php file. I installed MAMP on my Mac 10.6.8 with all the default settings...Apache port 8888, MySQL port 8889 and document root /Applications/MAMP/htdocs.
    In Dreamweaver CS5.5, the settings are: Site Name: PHP Testing; Local Site Folder: /Applications/MAMP/htdocs; Server Name: Local Testing; Connect using: Local/Network; Server Folder: /Applications/MAMP/htdocs; Web URL: http://localhost:8888/. Testing server model is selected as PHP MySQL.
    In the htdocs folder, I have a simple timetest.php with php echoing the system time. When I preview in a browser or even do Live View in Dreamweaver, the URL is "http://localhost:8888/timetest.php", it's giving me the error "Not Found. The requested URL/timetest.php was not found on this server".
    Am I missing something simple?
    Thank you!

    Oops, I guess the images didn't show.

  • "Adobe Dreamweaver PHP Training from David Powers

    “Adobe® Dreamweaver® CS5 with PHP Training from the Source  David Powers
    Lesson 7 Validating Input on the Server
    I have reached page 445, and become completely stuck - I've been about three weeks trying to sort the problem but cant get anywhere.  Not sure what to do from here so any advice would be really appreciated.  The problem:
    I have completed the script exactly as instructed, when I go live (local sever), I get a blank screen, OK, does not display.  I am sure this is something simple but I have done all the fault finding and am out foxed.  I know the local server works OK - I completed chapter 6 successfully - I can also run a php test page from the local folder that the file is stored in. i.e provictis/phpcs5.  I have saved my ZendFraework in a separate location as advised. i.e. User/SPENNY/...    
    This is the basic code:
    <?php
    $library='/Users/SPENNY/ZendFramework/library';
    set_include_path(get_include_path() . PATH_SEPARATOR .
    $library);
    require_once('Zend/Loader/Autoloader.php');
    $loader=Zend_Loader_Autoloader::getInstance();
    if ($loader) {
              echo 'ok';
    } else {
              echo 'Huston we have a blinkin problem, but do not panic we will get things sorted';
    Gareth

    FIXED!!
    1)
    i finally did get the message problem was with:
    $mailhost='ssl://mail.domain.com';
    ssl:// was just nonsense and been removed
    2)
    'auth' => 'true' was changed to 'auth' => 'login'
    3)
    for bluehost i got information that it was tls secure connection protocol not ssl
    'ssl' => 'tls'
    4)
    port used '25' not 465.
    Didnt still tried 26 and 465 maybe they would work too.

  • Dreamweaver/PHP/MySQL

    I am so far out on the limb of my techno capability that if I
    even think of leaning forward I will fall into the abyss.
    Am using Dreamweaver MX 2004 to create PHP
    view/add/update/delete forms to connect to a MySQL 5.0 database
    hosted by HotZona.com. Use PhpMyAdmin to set up and define the
    tables (about 20 tables). All of the work I have done so far has
    been done inside of Dreamweaver MX 2004. Have not modified or
    inserted any original code in any of the Php files generated so
    far.
    Have been able to setup view/add/update/delete forms for each
    table. That took me some time and a major learning curve. Oh, and
    that was after spending a month figuring out what happened to the
    DW connection to the MySQL database.
    Some of the tables are lists to be used as lists in other
    tables. That is where I am now stumped.
    I can set up (useing DW) an add form for a table that uses
    another table for a list in one field. It shows properly in the add
    form. But, when you look in the table using PhpMyAdmin, the field
    in the table does not contain the value of the list item selected.
    I've made a couple more changes so I may have licked this one.
    But, I cannot figure out how to use DW to pull up the
    sub-list value in vew, update or delete forms. Any suggestions on
    how to do this in DW or do I have to write the code independent of
    DW?
    Any suggestions?
    Thanks
    Mike Garey

    hi ,
    you can always try the macromedia devnet sites , they have
    ongoing tutorials and discussions on all areas, including php with
    dreamweaver8.
    http://www.adobe.com/devnet/topics/php.html
    be aware though that some of the tutorials require the use of
    third party php extensions, like interakt products, which is a
    shame because most of them are expensive to buy. But they are still
    worth a read.
    hope this is some help.
    ted.

  • Dreamweaver PHP/mySQL poll problem?

    Hi,
    I'm a PHP/mySQL noob who's using some of Dreamweaver's 8
    (8.2) out-of-box Update server behaviors to update a database of
    results for a poll. I know there's a lot of free polling apps out
    there but I need to have the poll show up in another page as
    opposed to being refreshed/displayed in the same page/content area.
    I've successfully built the backend in phpMyAdmin and I'm
    able to list the database contents and do basic updates to the poll
    questions and answers. However, I've been unable to pass an
    incremented result value via a Dreamweaver radio button group
    (which is the normal poll format) without previous unselected
    results being overwritten.
    When an answer is selected the result is indeed incremented
    and is displayed in the Result Listing but unfortunately it also
    overwrites any preexisting data for that poll and replaces it with
    zero. For example:
    Question:
    Answer a) 0
    Answer b) 0
    Answer c) 1 (this would be the value that was selected)
    Answer d) 0
    If c is selected again the value is stored and incremented
    and the value is now 2. However, if that value is not selected,
    then another value is incremented and c would be wiped. I've even
    resorted to trying to use javascript to maintain the original state
    but to no avail I was just previously incrementing the inline php
    radio button value and/or assigning different names to each of the
    radio buttons. This, of course, allows people to select multiple
    values which runs contrary to the whole idea behind radio buttons,
    but I thought I'd see if that worked . Anyway, when the radio group
    is assigned the same value it merely increments everything.
    example:
    http://www.dailydatum.com/funFacts/funFactsListingSingleUpdate15.php
    As you can see, i'm up to version 15 and gritting me teeth,
    lol. Any help would be mighty appreciated.
    Mario

    hi ,
    you can always try the macromedia devnet sites , they have
    ongoing tutorials and discussions on all areas, including php with
    dreamweaver8.
    http://www.adobe.com/devnet/topics/php.html
    be aware though that some of the tutorials require the use of
    third party php extensions, like interakt products, which is a
    shame because most of them are expensive to buy. But they are still
    worth a read.
    hope this is some help.
    ted.

  • How to make reset password "" Forget password " in dreamweaver cs4?

    hi
    i am using dreamweaver cs4 and i made a registration form and log in and log out  bit i want to send an e-mail to the user if he forget his/her password ... and i want also to make Remember Me function i know it is alot of things but i want help in them so please help me .....
    kareem

    Hi
    As far as I know the BIOS password can be removed by Service partner only. There is a way to do it but you should know that this can not be published because on this way it will be possible to start every stolen unit.
    Contact Authorized service partner and they will remove it. It can not costs a lot of money.
    Good luck!

  • How to make a class an array

    Hello, i am very confused as to how to make an array inside a class and use it from another class. For example, when making a "Book of hotties" where i would create entries in a book(objects) of hot women ,with parameters
    name, last name, phone number, and rating, and i am supposed to make a class for the book itself with a Person [ ] blackBook, and also a separete class called Person where i would create each person. How would i go about creating this array and where would i create it? and from that how can i access it in order to perform methods like sorting and checking entries? Tnx in advance.
    Edited by: Secmugen on May 5, 2009 6:19 AM
    Edited by: Secmugen on May 5, 2009 6:20 AM

    You probably need to start here: http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html
    There is also a Java collection called ArrayList which is suitable for storing and retreiving objects such as BlackBook, Person etc...
    To access elements of an array within a class you would most likely use a public getter method. eg.
    public class BlackBook {
       private ArrayList<Person> persons = new ArrayList<Person>();
      public ArrayList<Person> getPersons() {
         return this.persons;
      public Person getPerson(int index) {
        this.persons.get(index);
    };etc..

  • Help with Mac Dreamweaver PHP

    Well, I finally have PHP embedded within HTML working however the directory structure is totally confusing me.  I place files is /MAMP/htdocs and yet nothing works unless I add /MAMP/htdocs/htdocs and place the index and other php files ALSO in there.  I must open the ones in /MAP/htdocs and yet when I run them using my test server the files in /MAMP/htdocs/htdocs are the ones that are actually used.
    My configuration in SITES is
    Test Server
    local/network
    /Applciations/MAMP/
    http://localhost:8888/
    I would appreciate help understanding how to properly configure DreamWeaver SITE so that I can place all files in the MAMP/htdocs directory and eliminate the reducntant one.
    Thanks,
    Rick

    If you're using MAMP, your DW local site folder should be something like this:
    /Applications/MAMP/htdocs/sitename
    Because htdocs is the default folder MAMP routes to as localhost. Whatever site you have within htdocs folder will be suffixed with localhost in your browser for testing.
    For example, your site files (working files) can be put in a folder and that folder should be placed within 'htdocs' folder in MAMP Application folder.
    Say, you have a folder called 'test' containing index.php and this folder is placed within htdocs, your DW local site folder will be:
    /Applications/MAMP/htdocs/test
    To check this in browser, you'll simply enter
    http://localhost:8888/test
    This will run the index.php file within test folder by default.
    Your testing server can be the same as 'localhost:8888/test' for the site.
    If you want your Remote FTP also configured, enter your webhost's details and get that configured.
    -ST

  • Dreamweaver / PHP cannot view a picture

    I have the code set to load and retrieve pictures when
    editing a product. In the code below you don't see the picture;
    it's not loading onto the webpage. The field named picture in the
    MQSQL Database has the name of the file that is on the webserver in
    a subdirectory called photo from where the code is being run.
    http://www.atlantissupport.com/SagingPlaces/products.html
    (this is the result I'm getting)
    Code attached.

    scottie1ny wrote:
    Change this:
    > <td bgcolor="#999999"><img src="<?php print
    "$PicturePath$picture";
    > ?>"><?php echo $row_catdetail['picture'];
    ?></td>
    to this:
    <td bgcolor="#999999"><img src="<?php echo
    $PicturePath.$row_catdetail['picture']; ?>"></td>
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for