www.pie-designs.net/tablegen.php
It's not really finished yet, because I need to find a way to print the code. Anyway, feedback is appreciated.
www.pie-designs.net/tablegen.php
It's not really finished yet, because I need to find a way to print the code. Anyway, feedback is appreciated.
Sorry, wrong section
hmm to prinit it is java an opiton??
hope i helpedCode:<script language="JavaScript"> <!-- Begin if (window.print) { document.write('<form>' + '<input type=button name=print value="Print This Page" ' + 'onClick="java script:window.print()"> </form>'); } </script>
Erm, whats the use of it? I mean, you could write this in about 5 lines of code.. :eh:
http://fragfrog.nl/nutwork/table.php?rows=5&colls=3
The complete source:
Ok, that was 8 lines of code, but at least it shows the table source as well... :icon6:PHP Code:for($i = 0; $i < intval($_GET['rows']); $i++) {
$output .= "<tr height=10>";
for($j = 0; $j < intval($_GET['colls']); $j++)
$output .= "<td width=10> </td>\n";
$output .= "</tr>\n";
}
$output = "<table border=1>" . $output . "</table>";
echo $output . "<p> " . nl2br(htmlentities($output));
Nah, just store all that code in a variable and then skim a bit off Frag's code and print it out lol
Putting it inside some sort of separated box would make it look fancier lol maybe a txtbox or a colored div?
But I do like Pie's better than Frag's just because rather than changing url vars Pie's has the fields for it, just more user friendly ^_^
Course you can combine them together and use both.
But if you really want to be fancy you can give it formatting ^_^
Just throw in a few of those \t's and some font tags and make it look like some program's code viewer hehe. Possibly a printf? But I've yet to understand how printf works lol... I just avoid it and do things the long way
Yeah, didn't want to bother with input fields, though ofcourse adding those is just another few lines of codeMerely wanted to show that this is about as spectaculair as a paper hat, no offence meant..