- Joined
- Apr 29, 2005
- Messages
- 6,407
- Reaction score
- 130
You must be registered to see links
It's not really finished yet, because I need to find a way to print the code. Anyway, feedback is appreciated.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
<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>
Maybe he is learning PHP making scripts like that...Erm, whats the use of it? I mean, you could write this in about 5 lines of code.. :eh:
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));
You must be registered to see links
It's not really finished yet, because I need to find a way to print the code. Anyway, feedback is appreciated.