Re: Reg. Dynamically populate a checkbox



On 08/29/2006 02:04 AM, calms wrote:
HI,

Hi


First of all im vry new to PHP, i like to retrieve a value from DB,
accordingly i like to display the checkbox, either checked or not.

Now im able to retrieve the value from DB, i can show even show the
checkbox, but i cant make it checked????
[...]

It's a good idea to learn HTML before learning PHP. HTML is a complicated language with one purpose, and PHP is another complicated language with a slightly different purpose. Learning both at the same time can be overwhelming.

The "checked" attribute, in HTML, is used to make a checkbox checked.

http://www.w3.org/TR/html4/interact/forms.html#checkbox
.



Relevant Pages

  • Re: multiple row updates in MYSQL using HTML
    ... > if the checkbox is checked incase you are updating most of the records ... >>all to another perl script to perform the update. ... >>I basically need maintenance of one table with unlimited rows containing ... HTML? ...
    (comp.lang.perl)
  • Plain text and html not getting along in net.mail.message
    ... text with html formatted text and set the isBodyHTML = true that I get ... I've a checkbox that if checked sets the IsBodyHTML=true. ... Dim MyMail As MailMessage = New MailMessage ... Dim SMTPMail As SmtpClient = New SmtpClient ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problem with Javascript in a UserControl
    ... Make a look at the HTML generated by your code and find your checkbox ID. ... fine if I put the UserControl Data directly in my Web Page. ... I am used to seeing this from DataGrids, but not as a regular control on the page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Adding CssClass property default to custom checkbox wraps with span tag
    ... checkBox server control,correct? ... doesn't 100% identical to the html checkbox input element. ... element inside the ASP.NET checkbox server control, ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Reg. Dynamically populate a checkbox
    ... accordingly i like to display the checkbox, ... It's a good idea to learn HTML before learning PHP. ... complicated language with a slightly different purpose. ... I knw tht i have done some mistake in the echo statement. ...
    (php.general)