In the script below I begin with the first checkbox selected. If I check the second box and click the submit button, the parameter list I build does not pick up the second checkbox. Any ideas. Thanks as always for the help.
Scott
<?
$order = "";
if (isset($_POST['first_name']))
$order .= "first_name,";
if (isset($_POST['last_name']))
$order .= "last_name,";
/* remove the final OR */
$order = substr($order, 0, -1);
?>
<html>
<head>
<title>Test Select</title>
</head>
<body>
<form name="form1" method="post" action="activelist.php?vartable=e107_act_emps&varseq=<? print StripSlashes($order); ?>">
<input type="checkbox" name="first_name" value="first_name" CHECKED><br>
<input type="checkbox" name="last_name" value="last_name"><br>
<input type="submit" name="Submit" value="Submit" >
</form>
</body>
</html>
Scott
<?
$order = "";
if (isset($_POST['first_name']))
$order .= "first_name,";
if (isset($_POST['last_name']))
$order .= "last_name,";
/* remove the final OR */
$order = substr($order, 0, -1);
?>
<html>
<head>
<title>Test Select</title>
</head>
<body>
<form name="form1" method="post" action="activelist.php?vartable=e107_act_emps&varseq=<? print StripSlashes($order); ?>">
<input type="checkbox" name="first_name" value="first_name" CHECKED><br>
<input type="checkbox" name="last_name" value="last_name"><br>
<input type="submit" name="Submit" value="Submit" >
</form>
</body>
</html>