Code

There are 7 posts in the HTML category:

Form Helper Class

Helpers | HTML | PHP
Helper for generating and processing HTML forms with PHP. Includes functions for easy creation of text input, dropdowns, radio buttons, checkboxes, hidden fields, date dropdowns, file uploads, and more. » View Post

Convert an Entire MySQL Table to UTF-8

HTML | MySQL | PHP
A PHP function (with lots of comments) that converts a MySQL table and its data to UTF-8. It updates the collation of the table itself and of each text-based column. Additionally, it goes through each row and updates existing data automatically. » View Post

Count Textarea Characters with JavaScript

HTML | JavaScript
Simple code that allows you to count how many characters have been typed into a textbox (or any other text element) and then displays the remaining amount of characters in a specified element. Works great for Twitter forms and the 140 character max. » View Post

Convert Hex to Decimal Functions

CSS | HTML | PHP
The PHP functions you need to go from RGB values to a hexadecimal string and visa versa. » View Post

MySQL Vertical Display in HTML Table

HTML | MySQL | PHP
PHP code to display results from a MySQL query sorted vertically (rather than horizontally) in a table. Very simple and allows for custom number of columns. » View Post

Simple PHP Image Upload Form

HTML | Images | PHP
This little chunk of PHP allows a user to upload a JPEG image and then resizes that image to generate a thumbnail automatically. With a little work, you can change the file types allowed, formula for resizing the thumbnails, etc. but I wanted to keep this simple so only JPEGs are allowed and everything is resized based on height. » View Post

Simple PHP Directory Script

HTML | PHP
PHP code that crawls through your local directory creating an array of files (of a specified extension). It then sorts those and prints them out as HTML links. » View Post
Copyright © 2014, Ink Plant. All rights reserved.