media @ VU
php-hint.php
<?php
header("Cache-Control: no-cache, must-revalidate");
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
//<navigate></slide><slide id=php-hint-code-0><display>
// 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";
<navigate>
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];
}
}
}
}
<navigate>
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