boxes and table

This should be fairly simple, but I'm stumped...

??? I want to display a question and 9 answers with checkboxes that are checked by an array of dynmically.

On a form, I have a table that has a question and 9 answers (checkboxes)
The boxes have the same name (Answer5) so it creates a table when presented to the results page

Here is the code for the table with the question and answers:

< table width = "400" cellpadding = "0" cellspacing = "0" >
< tr > < td colspan = "2" > my Question goes here? < table > < /tr >
< tr > < td > < label > < input type = "checkbox" name = "Answer5" value = "Adding room" > room Addition < / label > < table > < /tr >
< tr > < td > < label > < input type = "checkbox" name = "Answer5" value = "family room Addition" > family room Addition < / label > < table > < /tr >
< tr > < td > < input type = "checkbox" name = "Answer5" value = "Addition of Garage" > Addition of Garage < table > < /tr >
< tr > < td > < input type = "checkbox" name = "Answer5" value = "Solarium/greenhouse" > Solarium/greenhouse < table > < /tr >
< tr > < td > < input type = "checkbox" name = "Answer5" value = "Guest Suite" > Guest Suite < table > < /tr >
< tr > < td > < input type = "checkbox" name = "Answer5" value = "Solarium" > veranda < table > < /tr >
< tr > < td > < input type = "checkbox" name = "Answer5" value = 'Out Building' > building Out < table > < /tr >
< tr > < td > < input type = "checkbox" name = "Answer5" value = "pregnant pool" > pool pregnant < table > < /tr >
< tr > < td > < input type = "checkbox" name = "Answer5" value = "2nd Story Addition" > 2nd Story Addition < table > < /tr >
< /table >

When I click on submit it accesses a page of results and the table will be printed.

Here's the code to print the table:
<? PHP print_r ($HTTP_POST_VARS ['Answer5']); >

And it shows:

Array ([0] = > adding room [1] = > addition of Garage)

When I check these boxes.


??? Instead of the table - its just there for verification of errors for the moment.
??? I want to display the same table with the question and 9 answers on the results page with the boxes that have been selected on the previous page

The way that I actually use is to present a database table. Then have another get it back the database table page to view the results. I've simplified this a bit to get the functionality working properly.

I'm puzzled! Help, please! Thank you!




When I submit, in it goes to a page of results that simply displays the result

the result is an array.

Friday, November 30, 2007 00:45:48 + 0000 (UTC), "joez461".
wrote:

> My question is how can I use the table to check or uncheck the boxes of same
> (dynamically)?

<>
$Answers = array)
"Room Addition.
"Room family Addition.
"Garage addition."
Solarium/greenhouse"."
'Suite of comments '.
"Véranda"
"On the building."
"The pool enclosure.
"2nd Story Addition.
);
foreach ($Answers as $ $a) {}
print '.\n » ;
}
?>

Gary

Tags: Dreamweaver

Similar Questions

  • multiple boxes and outString text entry



    I have a box of text that the user types his name in. He clicks on a button, and the name is moved to a new box in the scene, where a happy birthday message also.
    Name of the instance of the first box tb1, name of the instance of the second box is tb2.

    So far, this is the code:
    btn_enter.onPress = function() {}
    outString = 'Happy Birthday' + inString;

    What I have to do is to have another user to type their name in the first box. After their name by clicking on the button will move to the 2nd box and the name that has been in the 2nd box has to go to a third area, so it won't disappear from the screen. How to approach the issue?
    Create dynamic text boxes? Or input boxes more? What I am doing does not (text in motion, in box 2, box 3) so I don't know what to do next...
    Any suggestions are greatly appreciated!
    Thank you.


    I have the solution and wanted to post it in case others encounter this problem. It was given to me by a poster named NumbFinger, another site. It works perfectly!

    table that will store the user names
    var users: Array = new Array();
    variable coming out the text input field
    var newuser:String;
    inputName.text = "Enter name here";
    Fix function to the button named inputButton addUser
    inputButton.addEventListener (MouseEvent.CLICK, addUser);
    function addUser(Event:MouseEvent) {}
    Download the textfield text named inputName
    newuser = String (inputName.text);
    If users matrix is not empty, add the newuser to the front of the table
    {if(Users.Length>0)}
    Users.splice (0,0,newuser);
    If it is empty, just add the first value in the table
    } else {}
    Users.push (newuser);
    }
    If values exist in the table, set each textfield (named User1, User2 and user3) equal to the correct value
    if(Users.Length>0) {user1.text = users [0] ;} else {user1.text = ' ' ;}}}
    if(Users.Length>1) {user2.text = users [1] ;} else {user2.text = ' ' ;}}}
    if(Users.Length>2) {user3.text = users [2] ;} else {user3.text = ' ' ;}}}
    }

  • the pages for iOS - how to resize a text box and forms manually

    I added text boxes to my sheet. However, I can't get close to the size I want, which is not noticeable to someone else, but I wish they were accurate.

    example: I want to 1inchx4inch. but now the box and adjusting the size I can get 1.02x3.98. 99x4.01, etc.

    I know it still looks the same as the sizes are extremely close, but if there was a way t adjust by entering the desired size that I would rather do.

    Thank you

    Hi aswad,.

    If it is a file that you edit on your Mac you can certainly do here in the Inspector.

    If you are only in iOS with this you can try zooming in - you can have more control over it.

    Quinn

  • Given to replace my current iphone with a 6s - a trip that I can disable the use of boxes and use a unique sim card data for emails

    Given to replace my iphone today with a 6s - a trip that I can disable the use of boxes and use a sim card only data for email & web.

    If you go to settings > Mobile and less ' use of mobile data for: "turn off all except Safari and Mail

  • Start FireFox, download flash of white boxes and then sceen becomes black. Said above "Search - Mozilla Firefox" no just all black of the taskbar.

    Trying to help a friend. Their return from holiday. When she tried to start FireFox, the only thing it shows is a black screen. I updated the version and tried. Same result. FireFox ininstalled 'workstation. Downloaded FireFox and installed. Once again, same result. FireFox starts, but after a very second cherry where it show 2 empty boxes and then the screen goes black. The only thing is the search - Mozilla Firefox at the top left. There is nothing else to see or open.

    Try to start Firefox in Mode safe mode by holding down the SHIFT key by double-clicking on the icon.

    If it helps, try disabling graphics hardware acceleration where there is an incompatibility of the graphics driver.

    You need to restart Firefox for it to take effect, so save any work first (e.g. you compose mail, documents online that you are editing, etc.).

    the button Firefox orange (or the Tools menu) > Options > advanced

    In the mini ' General' tab, uncheck the box for "use hardware acceleration when available.

    If you restart Firefox, is the problem solved (or at least enhanced)?

  • I can't do the long search box and the shorter address box.

    As above. Even with the 'customize' window so that the icons can be moved or deleted.
    I tried to put the search boxes and address next to each other, but scaling is not yet an option.
    I use Firefox on a MacBook Air running Mountain Lion.

    You must do the resizing in normal mode and not when the Customize window is open.

    While in normal mode (and not in customization mode), you can place the mouse pointer between the address bar and the search bar, and it will become an icon of resizing that you can slide right or left with the left button of the mouse to change the relative width of the two bars.

  • I can't bid on firefox or explorer. I place the cursor in the quote box, and it will not record the numbers. Can someone please help?

    I can't bid on firefox or explorer. I place the cursor in the quote box, and it will not only record the numbers. Can anyone help please thanks

    Problem solved. My husband came and noticed that the number lock has been deactivated. I can't thank you enough for your help. Hope my solution helps someone else with the same problem.

  • the imei/meid number on my box and the Bill is different from what it shows in the icloud settings. Should what code I provide legal officials? I lost my phone

    the imei/meid number on my box and the Bill is different from what it shows in the icloud settings. Should what code I provide legal officials? I lost my phone

    Did you buy it an Apple Store, another store or regular carrier or as a boon to someone else?

  • Delivery to the address P. O Box and APO/AP

    I built a Photo calendar and I want to send one to a P. o. Box and the other to an APO/AP address.  When I try to enter addresses, I get the error messages.

    No PO box

    to see APO - http://www.apple.com/shop/open/shipping_apo

    LN

  • I have a mini ipad 2 and I fight a smart box and it is not turning off the ipad.

    I have a mini ipad 2 and I fight a smart box and it is not turning off the ipad.

    Go to settings > general, and then turn on lock/unlock.

  • Hello! I bought 6 iphones from Saudi Arabia and I put t know if all have Facetime! All iphones are new in boxes and I don t want to open! How will I know if all have Facetime? Thank you

    Hello! I bought 6 iphones from Saudi Arabia and I put t know if all have Facetime! All iphones are new in boxes and I don t want to open! How will I know if all have Facetime? Thank you

    If the phones were purchased from an authorized Apple source and were intended for sale in Saudi Arabia, none of them was FaceTime.

  • What do the boxes and the son of color

    I remember years back find a Web of National Instruments page which showed that all of the Labview of color 'son' and 'boxes' and what they meant.  Nobody knows where it is now or if it still exsists?  For example, a box of "magenta" was a... a green String Boolean...

    Thank you.

    It was the quick LabVIEW reference card. At one point, they stopped putting the data on the map types. Don't know what version stopped. You can get online maps: http://search.ni.com/nisearch/app/main/p/bot/no/ap/global/lang/en/pg/1/q/labview%20quick%20reference...

  • How to select a cell in a multicolumn list box and use the horizontal scrollbar on th

    An event structure, how to select a cell in a multicolumn list box and use the horizontal scrollbar on the front panel at the same time.  I can select a cell in the multicolumn in a structure of the event, but I can't move the scroll bar on the front panel when the program is running.

    I guess that you are referring to the scroll bar in the control multi-column listbox. What does your code when you select a cell? Can you please your postal code so that we can see the behavior you describe? It is possible that you are blocked the structure of the event, as in performing an operation long in case the treatment cell selection. In this case, the structure of the event must wait until the event ends before being able to respond to the next event. You can configure the event to not lock the front panel until the event ends.

  • age of empires 3 product lost key.is there a way I can get the key.i have the box and cert of authenticity and all code cd

    age of empires 3 product lost key.is there a way I can get the key.i have the box and cert of authenticity and all code cd

    Hi barryholt,

    You can see the following article for more information on the same.

    How to get a new product key for Microsoft Games for Windows, Streets & Trips, or MapPoint

  • Capture TV programs via the cable using the cable box and card Hauppauge

    I was doing fine record TV unencripted signal until comcast sent me a box of small encriptación. I have no problem with the help of the box to see the TV programs on a TV, but I can't get the Huappauge card to recognize the signal from the comcast box. I recognize the signal (without going through the box) an antenna that I decked out, but I can't work with the IR signal from the box that changes channels.  I have the cable extension IR remote with comcast box and also have an extension remote IR provided with the computer/hauppauge card.  It doesn't seem to be an outlet on the map, but there are three locations on the computer that are identified as IR Device Manager lists a Hauppauge Comsumer s infrared receiver and an infrared transceiver Microsoft e-Home installed without any indication of error.

    How can I get all those guys to play as a team, so I can schedule recording of TV programs again?

    CheckSix

    Photoray002;

    The Hauppauge WinTV HVR-1290 sends finally channel change commands TV Comcast decoder box and it is now possible to program the recorder.  I think that the main problems were a failure remote control Hauppauge and a very low external receiver.  It could also have been a few taken IR on the computer that could have internal corrosion of three years of inactivity.

    I found two sites that have helped significantly:

    http://support.HP.com/us-en/document/c01744910

    This site showed that the jury of IR extension on the back of the computer could be one of two different configurations - with and without electronics on the expansion card.  He had to open the case to determine where the design has been installed.  Mine was no electronics, but the indications I had followed guess an electronic sign.

    http://www.Hauppauge.com/site/support/support_faq_irblaster.html

    This site goes into detail about the implementation of the system using a set-top box.  I couldn't always installation to work because the statement strongly relied on the Hauppauge remote control.  But I noticed in the comments to the screen, another way to use the keyboard rather than the Hauppauge remote control.  Better easier to identify the box system is the first option.  The program will redirect you to point the remote very close to Comcast (touch) to the external IR receiver and press a particular key.  If the receiver receives the signal, it will be a very small red light flashes in the receiver. You may need to move the remote to the receiver to get this light. Once the box is identified the process of implementation of the signal is simple although there will be a lot of channels identified.  You can uncheck the channels that you don't want or you can deselect all channels and the select only the channels you want.

    Thank you for your help. He made me go in the right direction.

    CheckSix

Maybe you are looking for