Code:
<script type="text/javascript">
function getValue(form, name) {
for(var i = 0, f = form.elements[name], n = f.length, r = []; i < n; ++i)
f[i].checked && r.push(f[i].value);
return r.length ? r : null;
}
</script>
<form action="redirector.php" onsubmit="this.action = (getValue(this, 'page') || ['error']).join('');">
<input type="checkbox" name="page" value="A">
<input type="checkbox" name="page" value="B">
<input type="checkbox" name="page" value="C">
<input type="checkbox" name="page" value="D">
</form>
... where "redirector.php" is a page that will do the same thing for non-JS users.
Bookmarks