Jump to content

vinpkl

Members
  • Posts

    448
  • Joined

  • Last visited

Posts posted by vinpkl

  1. hi all

     

    i m able to echo all the checkboxes selected through the below code

     

    <input  type="checkbox" value="Battery"  name="checkbox[]" id="checkbox[]" /> 
    

     

    for ($i=0; $i<count($_REQUEST['checkbox']);$i++) {
    echo "chosen<br />$i. ".$_REQUEST['checkbox'][$i];
    }
    

     

    ouput is

    0. battery
    1. rocket
    2. pineapple
    

     

    but i want to insert all selected checkboxes values in database.

     

    so what should i write in my query

     

    $query = "insert into checkbox table (checkboxes) values()"
    

     

    vineet

  2. you can create one single external css stylesheet and then between the <head></head> tags on every page you can mention it

     

    <link rel="stylesheet" type="text/css" href="stylesheet.css" />
    

     

    after this you can call and apply the classes that you created in your stylesheet to the element you need styled.

     

    vineet

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.