Topic: label (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=22817" title="Pages that link to Topic: label (Page 1 of 1)" rel="nofollow" >Topic: label <span class="small">(Page 1 of 1)</span>\

 
EDDII
Bipolar (III) Inmate

From:
Insane since: May 2004

posted posted 08-05-2004 01:20

simple one this, how do you check more than one checkbox with the label command

code:
<label for=id></label>


how do i make it so that it checks more than one chackbox

oh yeah if anybody cares im still stuck with mysql
i cant find anything online, and i obviosly cant get help anywhere else

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-05-2004 03:47

Edd, what problems are you still having with the mysql?

I dont use the label tag much but isnt it just to apply a label to a single element - I think you can only have one element per label.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 08-05-2004 04:14

I don't understand the question.

The label tag (it's not a command, just a tag) does just that - labels a form element. It doesn't have anything to do with things being checked or not...

As far as I know, there is no way to make it apply to more than one element - and there's no reason to. If you want a label for a group of elements, you use the <fieldset><legend></legend></fieldset> tags.

As far as the mysql issues go, I would suggest finding a resource on SQL itself first, and then apply your understanding of the language to the particular implementation that is MySQL.

(Edited by DL-44 on 08-05-2004 04:15)

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-05-2004 05:05

Yes i was going to say that also... the only thing i could think of is that you can surround an element with the label tags like

code:
<label id=myname>
<input type=checkbox>
</label>



I havnt tried this out, i thought the label was just that, and there was really no point to it. The only other thing i can see is does this mean u can click on the label to turn the checkbox on/off, instead of just clicking on the checkbox.

This would be a similar functionality to ms access forms...

EDDII
Bipolar (III) Inmate

From:
Insane since: May 2004

posted posted 08-05-2004 14:16

ok firstly the checkbox label thing is not about labeling the checkbox its for checking a checkbox without actually ticking the box itself ie

code:
<label for=id>tick my checkbox</label><input id=id type=checkbox>


i was wondering if you could apply the same code for two checkboxes without having to start using other codes ly javascript

and the mysql thing its the programs people use that i have problems with. i have not yet found one of these programs that i could even create a database with. i happen to be quite a dinosaur when it comes to software, the most complex thing i can use is win media player

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-05-2004 14:23

label: no you can only use this for one element.

mysql: where are you trying to create the database? do u have a server setup or are you trying to do it through hosting? for people to help you, you need to provide more information.

i have hosting with another company, and their control panel allows me to create the database. Then you can create tables etc with something like phpmyadmin.

EDDII
Bipolar (III) Inmate

From:
Insane since: May 2004

posted posted 08-05-2004 16:24
quote:
H][RO said:
mysql: where are you trying to create the database? do u have a server setup or are you trying to do it through hosting? for people to help you, you need to provide more information.i have hosting with another company, and their control panel allows me to create the database. Then you can create tables etc with something like phpmyadmin.


do i have to get it on a server before i can edit it?
i would really just like it on my computer so that i could have a play with it to get used to it before i go onto a website
im using mysql admin and ems mysql manager whichever is easyest

and i have thought about using one of the mysql online programs but i didnt want to get tied down to one company

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 08-05-2004 21:24

From w3.org

quote:
The LABEL element may be used to attach information to controls. Each LABEL element is associated with exactly one form control.



I think what you want is the checked attribute on your <input type="checkbox" checked ...> tag. You can have multiple input tags with the checked attribute.


<edit>I wish my fingers would learn to type. I sure don't know how to</edit>


-- not necessarily stoned... just beautiful.


(Edited by hyperbole on 08-05-2004 21:25)

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-06-2004 12:42

eddii: i havnt tried without a server so i am not sure.. but i am assuming you will need to install something to be able to handle the databases, you would need to install a php server anyhow if u want to run half of the mysql admin progs out there..

EDDII
Bipolar (III) Inmate

From:
Insane since: May 2004

posted posted 08-06-2004 16:09

ok i just put that thing about mysql as an of hand comment but it seems to be taking over the thread

ok as it seems i cant use a database without a host im gonna buy some space on somwhere like lycos just to play around with
i will be eternally in debt to anyone who tells me:
what prog i need
what information i need about the server
and anything else i need to know

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 08-06-2004 18:17

See this - http://www.ozoneasylum.com/4633 for how to set it up on a windows PC.

To interact with MySQL, I use PHPMyAdmin, which is a pretty common program on most webhsots, AFAIK at this point.

it makes things very simple, but you will still need to learn some things about setting up tables and the like.

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 08-07-2004 07:44

This seems like a start at the beginning issue. You need to take a step back from the code for a moment and figure out what and how you are suposed to go about doing this. Server side and particularly database programming is a far cry differentent than designing web pages. It may not be harder but it is very very different.

You will want to read over the documentation at php.net on setting up PHP and you will want to read the API documentation on the MySQL functions (i.e. do a search for mysql on the php website). Then you will want to read up on the MySQL documention that would be found at mysql.com especially pay attention to the beginning areas which discuss setting up user privelleges through grants and also how to work with the command line.

You will then want to use an Apache Server. If you have read the documentation on both the PHP and the MySQL pages you will not have any trouble with the setup, but you will need to read. I can't say that enought READ THE MANUALS ESPECIALLY THE INSTALLATION INSTRUCTIONS. These programs require a whole lot of knowledge to work with sucessfully, that is why so many people pay for hosting, because of setting this stuff up, not to mention handling DNS and the rest. So read the directions.

From there you can install something like PHPMyAdmin which can be found over at sourceforge.net you might also be interested in FoxServ over at foxserve.net this program will handle most of the installation of those three programs for you, would have your web server up and running pretty quickly but you should read the documentation and especially the install instructions before attempting an install. If you do not you will be getting in over your head, you will be asked questions which you will want to know the correct answers to.

From here you will be able to play around. Good luck with it.

Dan @ Code Town

EDDII
Bipolar (III) Inmate

From:
Insane since: May 2004

posted posted 08-07-2004 08:36

thanks guys i have just about got it sorted(with a lot of help) im sorry if i seemed like i needed to be spoonfed and all but a lot of these terms you use i dont understand and im still quite an amature at most a web designing and everything anyway
and anyway if i havent got this sorted im going to give up web designing and go to live in south germany as a mountain gout untill i am 21

thanks once again

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 08-07-2004 15:19

Don't worry about that. It is expected. One of the bigger issues here is actually letting us know what your skills and skill levels are. Without that knowledge we might throw a whole lot of verbage at you that you most likely won't understand. We have no problem helping out someone who is new to the field, that is one of the reasons that we exist here. But unless we know you are new to the field we will not know what you don't know.

Dan @ Code Town

EDDII
Bipolar (III) Inmate

From:
Insane since: May 2004

posted posted 08-08-2004 19:30
quote:
WarMage said:

Don't worry about that. It is expected. One of the bigger issues here is actually letting us know what your skills and skill levels are. Without that knowledge we might throw a whole lot of verbage at you that you most likely won't understand. We have no problem helping out someone who is new to the field, that is one of the reasons that we exist here. But unless we know you are new to the field we will not know what you don't know.Dan @ Code Town


thats another problem im not really new to the feild



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu