Archive for the 'Programming' Category

March 22, 2009

This is a moving blog!

All content is moving to a new home.  In an effort to reduce the number of blogs I personally maintain I am eliminating them all in favour for Ventrino.  In fact, Ventrino is the only site I maintain outside of the day job now :-)

February 16, 2009

Changes to Ventrino Support

More often than otherwise we receive complimentary comments about the support we give for the Ventrino product.  I am instantly humbled by these comments as they really should be directed to other users of the script rather than Adam and I.
To understand the support we offer you need to know a little history of the [...]

January 2, 2009

PHP to redirect IP addresses to different page

If you would like to redirect browsers based on their IP the following method can be used to handle multiple IP’s.  You can choose to redirect entire networks or a single ip.

<?php
//array of ip’s you wish to block. Note that you can block an
//entire class by replacing it with 0, so to block [...]

July 24, 2008

Three little characters  designed to make your life hell

On more than one occasion these characters  have turned up just when everything else seems fine.  Like a tiny weeney scratch on a new car, one that only you know about, these little bastards turn up and take the rest of the day to diagnose. 
So what  is for?

 cannot be smoked or [...]

July 7, 2008

Limiting text input to characters and digits

To remove stuff such as punction and spaces (or anything you want) from a text box before sending to the server for validation you can use code like this, first the HTML:-

<input
name="name"
onblur="this.value = entrycheck(this.value);"
type="text"
size="20">

And then the following Javascript will remove invalid characters when the user moves to another field:-

<script type="text/javascript">
function namecheck(theInput) [...]