HTML/PHP help

Discussion in 'OT Technology' started by whiteaccord, Apr 14, 2005.

  1. whiteaccord

    whiteaccord OT Supporter

    Joined:
    Oct 28, 2002
    Messages:
    1,333
    Likes Received:
    0
    Location:
    Bay Area, CA / Seattle, WA
    I'm trying to pass checkbox values from one HTML page to my php script so I can update something in the database. Does anyone have any idea how I can check if the checkboxes was checked and how I can grab those values. Thanks in advance.
     
  2. Aimless

    Aimless Resident drunkey

    Joined:
    Nov 5, 2001
    Messages:
    2,534
    Likes Received:
    0
    Location:
    Wisconsin
    Assuming your form uses post (and not get)

    if(isset($_POST['checkboxname']))
    {
    //do whatever or
    $yourboolean = true;
    }
     

Share This Page