|
$self = $_SERVER['PHP_SELF'];
// Connect
$conn = mysql_connect($hnam,$unam,$pnam) or die(mysql_error());
$rs = mysql_select_db($dnam, $conn) or die(mysql_error());
// Select Data
$sql = "select * from cms_menu where menuCategory='yof' order by menuOrder asc";
// Execute Query
$rs = mysql_query( $sql, $conn ) or die(mysql_error());
echo " ";
while( $row = mysql_fetch_array( $rs ) )
{
echo ( "![" . $row["menuName"] . "](" . $row["menuIMG"] . ") " );
}
echo " ";
?> |
Apply Online
To apply online please ensure that you refer to the guidence notes available on this website. As well as that please make sure that you complete all of the fields marked with '*' as they are required fields without which your application will be unable to be processed. If you require any help completing the application then please contact Stuart Dunne at Blackpool Access & Participation Unit.
$self = $_SERVER['PHP_SELF'];
$appName = $_POST['appName'];
$appDOB_Day = $_POST['appDOB_Day'];
$appDOB_Mon = $_POST['appDOB_Mon'];
$appDOB_Year = $_POST['appDOB_Year'];
$appWard = $_POST['appWard'];
$appPhone = $_POST['appPhone'];
$appEmail = $_POST['appEmail'];
$appType = $_POST['appType'];
$appCompleting = $_POST['appCompleting'];
$appAmount = $_POST['appAmount'];
$appFullCost = $_POST['appFullCOst'];
$appDescription = $_POST['appDescription'];
$appBreakdown = $_POST['appBreakdown'];
$appSporting = $_POST['appSporting'];
$appCultural = $_POST['appCultural'];
$appRecreational = $_POST['appRecreational'];
$appVolunteering = $_POST['appVolunteering'];
$appSafe = $_POST['appSafe'];
$appHealth = $_POST['appHealth'];
$appEnjoy = $_POST['appEnjoy'];
$appEconomic = $_POST['appEconomic'];
$appPositive = $_POST['appPositive'];
$appHowInvolved = $_POST['appHowInvolved'];
$appYPBenefit = $_POST['appYPBenefit'];
$appBefore = $_POST['appBefore'];
$appBeforeHow = $_POST['appBeforeHow'];
$appChequeTo = $_POST['appChequeTo'];
$appSupportWorker = $_POST['appSupportWorker'];
$appAgency = $_POST['appAgency'];
$appSupportContact = $_POST['appSupportContact'];
?>
#
if(isset($_POST["submit"])){
#
$error_msg='';
#
}
#
if(trim($_POST["appName"])=='') {
#
$error_msg.="Please complete your name. ";
#
}
#
if(trim($_POST["appDOB_Day"])=='') {
#
$error_msg.="Please complete the day of your birth. ";
#
}
#
if(trim($_POST["appDOB_Mon"])=='') {
#
$error_msg.="Please complete the month of your birth. ";
#
}
#
if(trim($_POST["appDOB_Year"])=='') {
#
$error_msg.="Please complete the year of your birth. ";
#
}
#
if(trim($_POST["appWard"])=='') {
#
$error_msg.="Please complete your ward. ";
#
}
#
if(trim($_POST["appPhone"])=='') {
#
$error_msg.="Please complete your phone number. ";
#
}
#
if(trim($_POST["appEmail"])=='') {
#
$error_msg.="Please complete your email address. ";
#
}
#
if(trim($_POST["appCompleting"])=='') {
#
$error_msg.="Please complete how many young people are filling out this form. ";
#
}
#
if(trim($_POST["appAmount"])=='') {
#
$error_msg.="Please complete the amount you are applying for. ";
#
}
#
if(trim($_POST["appFullCost"])=='') {
#
$error_msg.="Please complete the full cost of your project. ";
#
}
#
if(trim($_POST["appDescription"])=='') {
#
$error_msg.="Please complete the description of your project. ";
#
}
#
if(trim($_POST["appBreakdown"])=='') {
#
$error_msg.="Please complete the breakdown of costs for your project. ";
#
}
#
if(trim($_POST["appHowInvolved"])=='') {
#
$error_msg.="Please complete how young people have been involved in the project planning. ";
#
}
#
if(trim($_POST["appYPBenefit"])=='') {
#
$error_msg.="Please complete which young people will benefit. ";
#
}
#
if(trim($_POST["appChequeTo"])=='') {
#
$error_msg.="Please state who you wish your cheque made payable to. ";
#
}
#
// display error message if any, if not, proceed to other processing
#
if($error_msg=='')
#
{
$conn=mysql_connect( "$hnam", "$unam", "$pnam" )
or die(mysql_error());
$rs = mysql_select_db( "$dnam", $conn )
or die(mysql_error());
$sql="insert into cms_yof_apps ( appName, appDOB_Day, appDOB_Mon, appDOB_Year, appWard, appPhone, appEmail, appType, appCompleting, appAmount, appFullCost, appDescription, appBreakdown, appSporting, appCultural, appRecreational, appVolunteering, appSafe, appHealth, appEnjoy, appEconomic, appPositive, appHowInvolved, appYPBenefit, appBefore, appBeforeHow, appChequeTo, appSupportWorker, appAgency, appSupportContact )
values ( '$appName', '$appDOB_Day', '$appDOB_Mon', '$appDOB_Year', '$appWard', '$appPhone', '$appEmail', '$appType', '$appCompleting', '$appAmount', '$appFullCost', '$appDescription', '$appBreakdown', '$appSporting', '$appCultural', '$appRecreational', '$appVolunteering', '$appSafe', '$appHealth', '$appEnjoy', '$appEconomic', '$appPositive', '$appHowInvolved', '$appYPBenefit', '$appBefore', '$appBeforeHow', '$appChequeTo', '$appSupportWorker', '$appAgency', '$appSupportContact' )";
$res = mysql_query( $sql, $conn );
if($res){ echo( "Application Submitted" ); }
}
?>
|