Location: PHPKode > scripts > NoticeBoardPro > NoticeBoardPro/viewByCategory.html

This page is opened in an iframe by viewByCategoryOutline.php. It enables the
user to select the categories of items to be listed. The form data are passed
to viewByCategory.php.

<TITLE>View Items by Category</TITLE>
<link rel="stylesheet" type="text/css" href="style/style.css">

<script language="javascript">
function checkForm()
var v =document.category;
for(var i=0;i<v.elements.length;i++) {
if(v.elements[i].type=="checkbox" && v.elements[i].checked)
{return true}
alert("You must select at least one category")
return false;
<BODY bgcolor="white">

<table cellpadding="2" cellspacing="2" border="0" width="380">
<tr align="center" valign="top">
<td align="left" style="padding-right:6;" width="250">

<form name="category" method="GET" action="viewByCategory.php" onSubmit='return checkForm();'>

<p><input type="checkbox" name="accommodation" value="1">Accommodation</p>
<p><input type="checkbox" name="books" value="2">Books</p>
<p><input type="checkbox" name="computers" value="3">Computers</p>
<p><input type="checkbox" name="home_and_garden" value="4">Home and Garden</p>
<p><input type="checkbox" name="photography" value="5">Photography</p>
<p><input type="checkbox" name="vehicles" value="6">Vehicles</p>
<p style="margin-bottom:10.000000pt"><input type="checkbox" name="other" value="7">Other</p>

<input type="hidden" name="startnum" value="0">

&nbsp;<input type="submit" value="View Items">&nbsp;&nbsp;<input type="reset">


<td style="border-left-style: solid; border-left-width: 1; padding-left: 6;">
<p style="margin-bottom:6.000000pt">Select one or more categories from the list and click <b>View Items</b>.</p>


Return current item: NoticeBoardPro