Checkbox, PHP Web Programming

Assignment Help:

These are used while one or more out of the group of options is to be selected. Building Check boxes is extremely similar to radio buttons. Below given code illustrates the use of Checkbox.

The user can select any number like 1, 2, none or all of the options. The alternative will be returned to you as the name/value pairs

Ajay=YES Tarun=YES

(or whatever the user selects. If nothing, nothing will be returned to you)

There is code for making a table having different options for three different questions. Try it yourself and view the result.

<CENTER>

<TABLE WIDTH=600 BORDER=1 CELLSPACING=1><TR>

<TD WIDTH=199>

Which is your friends? <BR>

<INPUT TYPE=CHECKBOX NAME="Friend?Ajay" VALUE="YES"> Ajay

<BR>

<INPUT TYPE=CHECKBOX NAME="Friend?Rohan" VALUE="YES"> Rohan

<BR>

<INPUT TYPE=CHECKBOX NAME="Friend? Tarun" VALUE="YES"> Tarun<BR>

<INPUT TYPE=CHECKBOX NAME="Friend? BU" VALUE="YES"> Bunty<P>

</TD>

<TD WIDTH=200>

Which of your friend would you lend money to? <BR>

<INPUT TYPE=CHECKBOX NAME="Lend money?. "Ajay" VALUE="YES"> Ajay <BR>

<INPUT TYPE=CHECKBOX NAME="Lend money? "Rohan" VALUE="YES"> Rohan <BR>

<INPUT TYPE=CHECKBOX NAME="Lend money? "Tarun" VALUE="YES"> Tarun <BR>

<INPUT TYPE=CHECKBOX NAME="Lend money? BU " VALUE="YES"> Bunty<P>

</TD>

<TD WIDTH=199>

Which of these guys would you trust with your brother? <BR>

<INPUT TYPE=CHECKBOX NAME="Date sister? Ajay" VALUE="YES"> Ajay

<BR>

<INPUT TYPE=CHECKBOX NAME="Date sister? Rohan" VALUE="YES"> Rohan <BR>

<INPUT TYPE=CHECKBOX NAME="Date sister?  Tarun" VALUE="YES"> Tarun<BR>

<INPUT TYPE=CHECKBOX NAME="Date sister? BU" VALUE="YES"> Bunty<P>

</TD>

</TR></TABLE>

</CENTER>

2124_Checkbox.png

Figure: A Form on a Web Page with Checkboxes


Related Discussions:- Checkbox

We want to connect our two websites shopping carts, Connect shopping carts ...

Connect shopping carts to software We want to connect our two websites shopping carts with the software of Shipwire (company distributing our products once they are sold online)

Date, Returns the current date comprising date, month, & year. Note that th...

Returns the current date comprising date, month, & year. Note that the getMonth method returns 0 in December, 1 in January etc. thus add 1 to the getMonth method to display the cor

I desire php help for bilingual website, I desire PHP help for BILINGUAL WE...

I desire PHP help for BILINGUAL WEBSITE We are in desire of a bilingual website that will have an online store and information about the designer of the product. Our product is

Need help for a proposal for electronic medical record, Proposal for electr...

Proposal for electronic medical record I'm development an online electronic medical record custody application for a third country as well as need a proposal for funding. I want

Frames, Let us understand now how to make frames for web documents. The int...

Let us understand now how to make frames for web documents. The intelligent use of frames can give your pages a cleaner look & make them easier to navigate. The fundamental conc

Hidden input, Yet another kind of input is HIDDEN input. A HIDDEN in...

Yet another kind of input is HIDDEN input. A HIDDEN input is a name/value pair which is returned to you but do

Create a web page that prompt the user for input, Overview Web pages often...

Overview Web pages often need to prompt the user for input and that input will then need to be uploaded to the server, processed, possibly stored, and then some appropriate result

Create a code for implement database of a car company, Creating Table cr...

Creating Table create table cars (Vin_num varchar(30),primary key(Vin_Num),Make varchar(15),Model varchar(20),Year int,Price varchar(20)); Inserting Records: insert into cars va

Adding ssi server-side include to the page, Step 1: Click on the icon withi...

Step 1: Click on the icon within the object tool bar               Or Insert -> SSI Step 2: choose the file Step 3: Add the file Step 4: Give the URL (where to be

Create a web page to display moving message, 1. Develop a Web page via...

1. Develop a Web page via href attribute of anchor tag and the attribute: vlink, alink, etc. 2. Develop a Web page, in which when the user clicks on the link it will go to

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd