Forum Moderators: open
<!--
function Select() {
var obj = new Object;
obj = document.eb.elements;
len = obj.length;
for(var i=0; i<len; i++){
obj[i].checked = true;
}
}
function Unselect() {
var obj = new Object;
obj = document.eb.elements;
len = obj.length;
for(var i=0; i<len; i++){
obj[i].checked = false;
}
}
function ArchiveButton() {
document.eb.archive.value = "Archive";
document.eb.submit();
}
//-->
</script>
<table width=100% cellspacing=0 cellpadding=3 border=0>
<form name="eb" method="POST" action="index.php?">
<input name="a" type="hidden" value="eb">
<input name="form" type="hidden" value="eb">
<TR bgcolor=#C4C4FF >
<TD bgcolor=#C4C4FF align=left colspan=2>
<input type="button" name="archive" value="Archive" onClick="ArchiveButton()">
<SELECT name="categorize" onchange="window.document.eb.submit()">
<OPTION value="" SELECTED="selected">Select Category</OPTION>
<OPTION value="1108938067">News</OPTION>
<OPTION value="1108856006">Personal/Family</OPTION>
<OPTION value="1108938088">Project Communications</OPTION>
<OPTION value="1108938082">Query</OPTION>
<OPTION value="1108938074">Resource Announcement</OPTION>
<OPTION value="1108938059">System</OPTION>
</SELECT>
<BR>
<b>Select: </b><a href="#" onclick="Select()">All</a></td>
I need to be able to get to the value of the button via a PHP script (e.g. I am looking for $_POST['archive']=="Archive"). I have also tried using window.document.eb.submit in the archive button's onClick value.
Any help appreciated.