php hint
// Date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); //
// array with names a[]="Brittany"; a[]="Diana"; a[]="Fiona"; a[]="Hege"; a[]="Johanna"; a[]="Linda"; a[]="Ophelia"; a[]="Amanda"; a[]="Cindy"; a[]="Eve"; a[]="Sunniva"; a[]="Unni"; a[]="Liza"; a[]="Ellen"; a[]="Vicky"; //
code
//get the q parameter from URL _GET["q"];//lookup all hints from array if length of q>0 if (strlen(hint=""; for(i < count(i++) { if (strtolower(a[q)))) { if (hint=i]; } else { hint." , ".i]; } } } } //
response
// Set output to "no suggestion" if no hint were found // or to the correct values if (response="no suggestion"; } else { hint; } //output the response echo
(C) Æliens 04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.