can any one please help me,by telling how to create a check box.

<form name="frm" action="action.php">

<tr><td><input type="check box" name="box[]"
 value="--" </td></tr>
</form>

can any one tell me what should be passed as the value and what should the action .php contain...

please help ..

<form name="frm" action="action.php">

<tr><td><input type="check box" name="box"
 value="1" ></td></tr>
<tr><td><input type="submit" name="submit" value="submit"></td></tr>
</form>

in action.php

<?
echo $_REQUEST[box];
?>
<form name="frm" action="action.php">

<tr><td><input type="check box" name="box"
 value="1" ></td></tr>
<tr><td><input type="submit" name="submit" value="submit"></td></tr>
</form>

in action.php

<?
echo $_REQUEST[box];
?>
if it is  a registration page and am subbmitting values to a db,through a form, what should be the action page?
if it is  a registration page and am subbmitting values to a db,through a form, what should be the action page?

you can write php code witn in the page also. just execute this code.

<?
ob_start();
extract($_POST);
echo $box;
if($_POST)
{
//write insert query here
}
?>
      <form name="frm" action=" " method="post">
<table>
    <tr><td><input type="check box" name="box" value="1"></td></tr>
   <tr><td><input type="submit" name="submit" value="submit"></td></tr>
</table>
      </form>
<?
$con = mysql_connect("localhost","username","password");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
$db=mysql_select_db('dbname',$con);
?>

write this in php code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.