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.
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...
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
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.
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
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>
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..
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
From: Rochester, New York, USA Insane since: May 2000
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.
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
From: Rochester, New York, USA Insane since: May 2000
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.
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