Select from a series of radio boxes
Your results will appear here
By Graham Ellis, graham@wellho.net
Well House Consultants
Complete source code of this example:
<?php
// Everything via common booking script
include ("$_SERVER[DOCUMENT_ROOT]/../include/stdphp.v8");
$year = date("Y");
$where = $url = "http://$_SERVER[SERVER_NAME]$_SERVER[REDIRECT_URL]";
$thispage = preg_replace('!.*/!','',$where);
/* Can we find source file in trainee directories? */
$dh = opendir("$_SERVER[DOCUMENT_ROOT]/../trainee");
$itsin = "";
while ($tdn = readdir($dh) ) {
if (! ereg("^[a-z]",$tdn)) continue;
// $dlk .="$tdn - ";
$lookin = @opendir("$_SERVER[DOCUMENT_ROOT]/../trainee/$tdn");
while ($ldn = @readdir($lookin) ) {
if ($ldn == $thispage) {
$itsin = $tdn;
break;
}
if ($itsin) break;
}
}
if ($itsin) {
$upit =strtoupper($itsin);
$itsin = "See source code <a href=/resources/ex.php4?item=$itsin/$thispage target=pix>here</a> • More examples - same topic <a href=/resources/$upit.html target=pix>here</a><br>";
}
$tailer = 1;
$tailerfrom = "</body>";
$tailerto = <<< BSECTZZ
<br clear=all /><hr>
<div style="background: #FFCCCC;color: black;">
<center>Training sample © $year, WELL HOUSE CONSULTANTS LTD<br />
This is <span style="font-family: 'Times';font-style:italic;cursor: default;"><a href="$url">$url</a></span> <br />
$itsin
Well House Manor • 48 Spa Road • Melksham, Wiltshire
• United Kingdom • SN12 7NY<br />
Phone: +44 (0) 1225 708 225 •
EMAIL: <span style="font-family: 'Times';font-style:italic;cursor: default;"><a
href="mailto:info@wellho.net">info@wellho.net</a></span> •
WEB: <span style="font-family: 'Times';font-style:italic;cursor: default;"><a href="http://www.wellho.net">http://www.wellho.net</a></span> </center></div>
BSECTZZ;
include ("$_SERVER[DOCUMENT_ROOT]/../include/pagescript.v8");
?>