Posted: Fri Dec 09, 2005 8:35 am
ah,sorry bout the misinformation on the java console..it's on the same line as my developer extension so I just assumed the two were together..my mistake 
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
function CheckAll(myform_name,checked) {
var i;
var len;
len = document.forms[myform_name].elements.length;
for (i=0; i < len; i++) {
if (document.forms[myform_name].elements[i].type == "checkbox" && document.forms[myform_name].elements[i].disabled == false ) {
document.forms[myform_name].elements[i].checked=checked;
}
}
}jayshields wrote:Is it known that IE puts line breaks in after </form> and FF doesn't? I think that's the provlem I'm having now. Any way to solve it?
Code: Select all
FORM { margin:0px; padding:0px; }Bothjayshields wrote:So it is a known "bug", and that is the proper workaround? Or I'm just being stupid and your helping me? Or both?![]()
Code: Select all
//Show some stats
echo '<tr bgcolor="';
//Alternate the row bg colours
$i++;
if ($i % 2 == 0) {
echo '#F0F0F0';
} elseif ($i % 2 == 1) {
echo '#FFFFFF';
}
echo '"><td colspan="4"><font size="-1">Directories: ' . $dircount . ' | Files: ' . $filecount;
//Show the new dir form/input
echo '<form class="newdir" action="index.php?dir=' . $_GET['dir'] . '" method="post">';
echo 'New Directory: <input type="text" size="20" maxlength="30" name="dirname"> ';
echo '<input type="submit" name="makedir" value="Create"></form></font></td></tr>';Code: Select all
form.newdir {
margin: 0px;
padding: 0px;
}
Code: Select all
echo '"><td colspan="2" align="left"><font size="-1">Directories: ' . $dircount . ' | Files: ' . $filecount;
//Show the new dir form/input
echo '</font></td><td colspan="2" align="right"><form class="newdir" action="index.php?dir=' . $_GET['dir'] . '" method="post">';
echo '<font size="-1">New Directory:</font> <input type="text" size="20" maxlength="30" name="dirname"> ';
echo '<input type="submit" name="makedir" value="Create"></form></td></tr>';Code: Select all
<tr bgcolor="#F0F0F0">
<td colspan="2" width="50%" align="left">
<font size="-1">Directories: 6 | Files: 4</font>
</td>
<td colspan="2" width="50%" align="right">
<font size="-1">
<form class="newdir" action="index.php?dir=uploads/collegestuff" method="post">
New Directory:
<input type="text" size="20" maxlength="30" name="dirname">
<input type="submit" name="makedir" value="Create">
</form>
</font>
</td>
</tr>Code: Select all
echo '"><td colspan="4"><font size="-1"><p style="float:left">Directories: ' . $dircount . ' | Files: ' . $filecount;
//Show the new dir form/input
echo '</p><form style="float:right" class="newdir" action="index.php?dir=' . $_GET['dir'] . '" method="post">';
echo 'New Directory: <input type="text" size="20" maxlength="30" name="dirname"> ';
echo '<input type="submit" name="makedir" value="Create"></form></font></td></tr>';