I suppose the problem relates to HTML and not PHP however there is a tiny bit of PHP in the code which may have caused the problem:
PHP Code:
echo '<form action="index.php" method="get">';
echo '<select id="server">';
if($UserInfo->local_permissions == 1 OR $UserInfo->admin_lvl >= 2){
echo '<option>Sandbox</option>';
}
if($UserInfo->local_permissions == 2 OR $UserInfo->admin_lvl >= 2){
echo '<option>Fretta</option>';
}
echo '</select> ';
echo 'Day: <input type="text" id="day" maxlength="2" size="2" /> ';
echo 'Month: <input type="text" id="month" maxlength="2" size="2" /> ';
echo 'Year: <input type="text" id="year" maxlength="4" size="4" value="" /> ';
echo '<input type="hidden" id="page" value="logs" />';
echo '<input type="submit" value="Load" id="Load" /></form>';
What you see here is an ordinary form... It works fine, until you click "Load"...
What I think might be the sin here, is the fact that this piece of code is found on a page called "index.php?page=logs". When I press load it sends people to index.php as it's supposed to, but no data goes into the URL. This doesn't work with post either - and I really can't figure out what I've done wrong :S
At first I tried setting the form action to
index.php?page=logs and then after that I tried with just index.php and then saving the page variable inside the form.