HTML
-

Patternify (for repeating patterns not repeating paternity)
‘Cos I forget where I find these things – and as far as Base64 pattern generators go this one’s a doozy. An old doozy, but a doozy, nevertheless.
-
Turn a text list into an HTML Select Option list with PHP
Easy solution to this basic HTML coding need posted over at Stack Overflow by a random clever bloke. Thanks RCB. My only issue was with UTF-8 characters coming through garbled. Bodged a workaround using this encode entities plug-in for Dreamweaver.
-
Include an HTML file in a PHP variable
I couldn’t get PHP to accept an HTML file include as the definition of a variable without throwing my templated page into disarray. An answer came from the venerable desilva then checked with the php folk; use output buffering (see example six in that last link): <?php $string = get_include_contents(‘somefile.php’); function get_include_contents($filename) { if (is_file($filename)) { ob_start(); include $filename; $contents = ob_get_contents(); ob_end_clean(); return $contents; }…
-
How to group items in HTML select menus
Here’s something I learnt last week, just as the title says: how to group items in an (x)HTML select drop down list. This trick, which I’d assumed was done with magic (or rather DHTML or JavaScript trickery), is actually very easy to achieve being straight forward HTML markup. [Found in a referenced post linked to…