More client side trouble.
Code: Select all
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" align="left">Directories: ' . $dircount . ' | Files: ' . $filecount , '</font>';
//Show the new dir form/input
echo '<font size="-1"><form 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>';How can I get that stuff in the same column/row onto the same line in my page?
While I'm at it, I've got 2 minor sort of related questions aswell:
Instead of hard coding it to colspan 4 columns, can I just make it colspan all columns? I've tried * to no avail.
My other one is, instead of putting in the form action URL . index.php?dir= . $_GET['dir'], or even more effectively, URL . index.php . if (isset($_GET['dir'])) echo "?dir=", $_GET['dir']; is there a way to just dump the current absolute URL into the form action? I haven't found a function that keeps all the GET info intact.
TIA.