Advertisement
Advertisement
| 02.15.2008 at 08:12AM PST, ID: 23166402 | Points: 250 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217: 218: 219: 220: 221: 222: 223: 224: 225: 226: 227: 228: 229: 230: 231: 232: 233: 234: 235: 236: 237: 238: 239: 240: 241: 242: 243: 244: 245: 246: 247: 248: 249: 250: 251: 252: 253: 254: 255: 256: 257: 258: 259: 260: 261: 262: 263: 264: 265: 266: 267: 268: 269: 270: 271: 272: 273: 274: 275: 276: 277: 278: 279: 280: 281: 282: 283: 284: 285: 286: 287: 288: 289: 290: 291: 292: 293: 294: 295: 296: 297: 298: 299: 300: 301: 302: 303: 304: 305: 306: 307: 308: 309: 310: 311: 312: 313: 314: 315: 316: 317: 318: 319: 320: 321: 322: 323: 324: 325: 326: 327: 328: 329: 330: 331: 332: 333: 334: 335: 336: 337: 338: 339: 340: 341: 342: 343: 344: 345: 346: 347: 348: 349: 350: 351: 352: 353: 354: 355: 356: 357: 358: 359: 360: 361: 362: 363: 364: 365: 366: 367: 368: 369: 370: 371: 372: 373: 374: 375: 376: 377: 378: 379: 380: 381: 382: 383: 384: 385: 386: 387: 388: 389: 390: 391: 392: 393: 394: 395: 396: 397: 398: 399: 400: 401: 402: 403: 404: 405: 406: 407: 408: 409: 410: 411: 412: 413: 414: 415: 416: 417: 418: 419: 420: 421: 422: 423: 424: 425: 426: 427: 428: 429: 430: 431: 432: 433: 434: 435: 436: 437: 438: 439: 440: 441: 442: 443: 444: 445: 446: 447: 448: 449: 450: 451: 452: 453: 454: 455: 456: 457: 458: 459: 460: 461: 462: 463: 464: 465: 466: 467: 468: 469: 470: 471: 472: 473: 474: 475: 476: 477: 478: 479: 480: 481: 482: 483: 484: 485: 486: 487: 488: 489: 490: 491: 492: 493: 494: 495: 496: 497: 498: 499: 500: 501: 502: 503: 504: 505: 506: 507: 508: 509: 510: 511: 512: 513: 514: 515: 516: 517: 518: 519: 520: 521: 522: 523: 524: 525: 526: 527: 528: 529: 530: 531: 532: 533: 534: 535: 536: 537: 538: 539: 540: 541: 542: 543: 544: 545: 546: 547: 548: 549: 550: 551: 552: 553: 554: 555: 556: 557: 558: 559: 560: 561: 562: 563: 564: 565: 566: 567: 568: 569: 570: 571: 572: 573: 574: 575: 576: 577: 578: 579: 580: 581: 582: 583: 584: 585: 586: 587: 588: 589: 590: 591: 592: 593: 594: 595: 596: 597: 598: 599: 600: 601: 602: 603: 604: 605: 606: 607: 608: 609: 610: 611: 612: 613: 614: 615: 616: 617: 618: 619: 620: 621: 622: 623: 624: 625: 626: 627: 628: 629: 630: 631: 632: 633: 634: 635: 636: 637: 638: 639: 640: 641: 642: 643: 644: 645: 646: 647: 648: 649: 650: 651: 652: 653: 654: 655: 656: 657: 658: 659: 660: 661: 662: 663: 664: 665: 666: 667: 668: 669: 670: 671: 672: 673: 674: 675: 676: 677: 678: 679: 680: 681: 682: 683: 684: 685: 686: 687: 688: 689: 690: 691: 692: 693: 694: 695: 696: 697: 698: 699: 700: 701: 702: 703: 704: 705: 706: 707: 708: 709: 710: 711: 712: 713: 714: 715: 716: 717: 718: 719: 720: 721: 722: 723: 724: 725: 726: 727: 728: 729: 730: 731: 732: 733: 734: 735: 736: 737: 738: 739: 740: 741: 742: 743: 744: 745: 746: 747: 748: 749: 750: 751: 752: 753: 754: 755: 756: 757: 758: 759: 760: 761: 762: 763: 764: 765: 766: 767: 768: 769: 770: 771: 772: 773: 774: 775: 776: 777: 778: 779: 780: 781: 782: 783: 784: 785: 786: 787: 788: 789: 790: 791: 792: 793: 794: 795: 796: 797: 798: 799: 800: 801: 802: 803: 804: 805: 806: 807: 808: 809: 810: 811: 812: 813: 814: 815: 816: 817: 818: 819: 820: 821: 822: 823: 824: 825: 826: 827: 828: 829: 830: 831: 832: 833: 834: 835: 836: 837: 838: 839: 840: 841: 842: 843: 844: 845: 846: 847: 848: 849: 850: 851: 852: 853: 854: 855: 856: 857: 858: 859: 860: 861: 862: 863: 864: 865: 866: 867: 868: 869: |
<?php
session_start();
if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) {
// Insert you code for processing the form here, e.g emailing the submission, entering it into a database.
//echo 'Thank you. Your message said "'.$_POST['message'].'"';
$codeisinvalid = "FALSE" ;
unset($_SESSION['security_code']);
} else {
// Insert your code for showing an error message here
$codeisinvalid = "TRUE";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PAYROLL GIVING DONATION FORM</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<meta name="Robots" content="NOINDEX" />
<meta http-equiv="PRAGMA" content="NO-CACHE" />
<link rel="stylesheet" type="text/css" media="all" href="https://www.givingonline.org.uk/payrollgiving.css" />
<?php include("vars.inc");
$sitedb = mysql_connect($db_host, $db_username, $db_password);
mysql_select_db($db_name, $sitedb);
$getID=$_GET['getID'];
$gettitle=$_GET['title'];
$useraction=$_POST['useraction'];
//echo "getID = " . $getID;
if ($CharityOne == '') { $CharityOne = 'Charity One' ;}
if ($CharityTwo == '') { $CharityTwo = 'Charity Two' ;}
if ($CharityThree == '') { $CharityThree = 'Charity Three' ;}
if ($getID =='') { $getID = '1' ;};
$query = "SELECT * FROM go_clients WHERE ID = '$getID'; ";
$result = mysql_query($query) or die("Query failed on lookup");
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
extract($row);
$getimage = $goIMAGE;
$gettitle = $title;
$getemail = $details;
$getagency = $agency;
}
?>
<style type="text/css">
<!--
.style2 {color: #FFFFFF}
.style3 {color: #E81E1E; }
.style4 {
color: #EE1F27;
font-weight: bold;
}
.style5 {
color: #EC1D25;
font-weight: bold;
}
</style>
</head>
<body>
<div id="outer">
<div id="hdr" align="left">
<table width="731">
<tr><td width="239" align="center" valign="top"><span class="style5">
<img src="https://www.givingonline.org.uk/clients/<?php echo $getimage;?>" width="181" height="120" style="border:1px solid #cccccc;" /></span></td>
<td width="480" rowspan="2"><h3 class="style3"><?php echo $gettitle;?> Donation Form </h3>
<span class="style4">How it works</span><br />
<br />
Simple, by filling in out this form, you can choose to support <br />
any charity of your choice, all from your pay.<br />
<br />
<span class="style5">Pay no tax</span><br />
<br />
Because the donation is taken from your Gross pay, <br />
every pound you give will only cost you 80p. <br />
<br />
<table width="427" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="58%" height="23" bgcolor="#ED1B24"><span class="style2">You donate </span></td>
<td width="2%"> </td>
<td width="14%" bgcolor="#ED1B24" style="border-left:1px solid #ED1B24;border-right:1px solid #ffffff;border-top:1px solid #ED1B24;border-bottom:1px solid #ED1B24;"><div align="center" class="style2">£5.00</div></td>
<td width="13%" bgcolor="#ED1B24" style="border-bottom:1px solid #ED1B24;border-top:1px solid #ED1B24;"><div align="center" class="style2">£7.50</div></td>
<td width="13%" bgcolor="#ED1B24" style="border-left:1px solid #ffffff;border-right:1px solid #ED1B24;border-top:1px solid #ED1B24;border-bottom:1px solid #ED1B24;"><div align="center" class="style2">£10.00</div></td>
</tr>
<tr>
<td style="border-left:1px solid #ED1B24;border-right:1px solid #ED1B24;border-bottom:1px solid #ED1B24;">Cost to you as a 20% tax payer </td>
<td> </td>
<td style="border-left:1px solid #ED1B24;border-right:1px solid #ED1B24;border-bottom:1px solid #ED1B24;"><div align="center">£4.00</div></td>
<td style="border-bottom:1px solid #ED1B24;"><div align="center">£6.00</div></td>
<td style="border-left:1px solid #ED1B24;border-right:1px solid #ED1B24;border-bottom:1px solid #ED1B24;"><div align="center">£8.00</div></td>
</tr>
<tr>
<td style="border-left:1px solid #ED1B24;border-right:1px solid #ED1B24;border-bottom:1px solid #ED1B24;">Cost to you as a 40% tax payer </td>
<td> </td>
<td style="border-left:1px solid #ED1B24;border-right:1px solid #ED1B24;border-bottom:1px solid #ED1B24;"><div align="center">£3.00</div></td>
<td style="border-bottom:1px solid #ED1B24;"><div align="center">£4.50</div></td>
<td style="border-left:1px solid #ED1B24;border-right:1px solid #ED1B24;border-bottom:1px solid #ED1B24;"><div align="center">£6.00</div></td>
</tr>
<tr><td><br />
Source code: PGA [Agency: <?php echo $getagency;?>]</td>
</tr>
</table> </td></tr>
<tr align="center" valign="middle">
<td height="120"><span class="style5"><?php if ($ID != '1') {;?><img src="https://www.givingonline.org.uk/images/Payroll-Giving.jpg" width="129" height="120" /><?php };?></span></td>
</tr>
</table>
</div>
<div id="bodyblock" align="right">
<div id="cont">
<div align="left" class="mainforms" id="bodyblockinner">
<div id="textbox">
<?php
if ($_POST['submitForm'] == 'true') {
if (empty($_POST['EmployeeStaffNo']))
{
$employeestaffnumbermissing = 'TRUE';
$errors[] = 'Please enter employee no';
}
if (empty($_POST['WorkplacePostcode']))
{
$workplacepostcodemissing = 'TRUE';
$errors[] = 'Please enter postcode';
}
if (empty($_POST['WorkplaceCounty']))
{
$workplacecountymissing = 'TRUE';
$errors[] = 'Please enter your county';
}
if (empty($_POST['WorkplaceTown']))
{
$workplacetownmissing = 'TRUE';
$errors[] = 'Please enter town';
}
if (empty($_POST['WorkplaceAddress1']))
{
$workplace1missing = 'TRUE';
$errors[] = 'Please enter address1';
}
if (empty($_POST['EmployersName']))
{
$employermissing = 'TRUE';
$errors[] = 'Please enter employee name';
}
if (empty($_POST['FirstName']))
{
$firstnamemissing = 'TRUE';
$errors[] = 'Please enter your first name';
}
if (empty($_POST['SurName']))
{
$surnamemissing = 'TRUE';
$errors[] = 'Please enter your surname';
}
if (empty($_POST['Postcode']))
{
$postcodemissing = 'TRUE';
$errors[] = 'Please enter postcode';
}
if (empty($_POST['County']))
{
$countymissing = 'TRUE';
$errors[] = 'Please enter county';
}
if (empty($_POST['Town']))
{
$townmissing = 'TRUE';
$errors[] = 'Please enter town';
}
if (empty($_POST['Address1']))
{
$address1missing = 'TRUE';
$errors[] = 'Please enter address1';
}
if (empty($_POST['Title']))
{
$titlemissing = 'TRUE';
$errors[] = 'Please enter title';
}
if (empty($_POST['security_code']))
{
$security_codemissing = 'TRUE';
$errors[] = 'Please enter security code';
}
if (empty($_POST['Signature']))
{
$sigmissing = 'TRUE';
$errors[] = 'Please enter your full name';
}
if (empty($_POST['CharityOne']))
{
$CharityOnemissing = 'TRUE';
$errors[] = 'Please enter Charity Name';
}
if ($_POST['CharityOne'] =='Charity One') { $CharityOnemissing = 'TRUE'; }
if (empty($_POST['Email']))
{
$emailmissing = 'TRUE';
$errors[] = 'Please enter an e-mail';
}
else if (!eregi("^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$", $_POST['Email']))
{
$emailmissing = 'TRUE';
$errors[] = 'Please enter a valid e-mail address';
}
if (count($errors) == 0)
{
$errorcount = '0';
}
else
{
$errorcount = '1';
$submitForm = 'false';
// echo $errors[0];
}
}
//echo "form submit = " . $_POST['submitForm'];
?>
<?php if (($_POST['submitForm'] == 'true') AND ($errorcount == '0') AND ($codeisinvalid == 'FALSE')) {
$getEmployeeVolunteering = $_POST['EmployeeVolunteering'] ;
$getStaffFundraising = $_POST['StaffFundraising'] ;
$getNoUpdates = $_POST['NoUpdates'] ;
$getDoNotGiveName = $_POST['DoNotGiveName'] ;
if ($getEmployeeVolunteering == '') { $getEmployeeVolunteering = 'No' ;}
if ($getStaffFundraising == '') { $getStaffFundraising = 'No' ;}
if ($getNoUpdates == '') { $getNoUpdates = 'No' ;}
if ($getDoNotGiveName == '') { $getDoNotGiveName = 'No' ;}
$query = "
INSERT INTO go_donators (DonationType , Agency , CharityOne , CharityOneMonthlyPounds , CharityOneMonthlyPence , CharityOne4WeeklyPounds , CharityOne4WeeklyPence , CharityOneFortnightlyPounds , CharityOneFortnightlyPence , CharityOneWeeklyPence , CharityOneWeeklyPounds , CharityTwo , CharityTwoMonthlyPounds , CharityTwoMonthlyPence , CharityTwo4WeeklyPounds , CharityTwo4WeeklyPence , CharityTwoFortnightlyPounds , CharityTwoFortnightlyPence , CharityTwoWeeklyPence , CharityTwoWeeklyPounds , CharityThree , CharityThreeMonthlyPounds , CharityThreeMonthlyPence , CharityThree4WeeklyPounds , CharityThree4WeeklyPence , CharityThreeFortnightlyPounds , CharityThreeFortnightlyPence , CharityThreeWeeklyPence , CharityThreeWeeklyPounds , TotalPounds , TotalPence , Title , FirstName , SurName , Address1 , Address2 , Town , County , Postcode , TelephoneNo , MobileNo , Email , EmployersName , WorkplaceAddress1 , WorkplaceAddress2 , WorkplaceTown , WorkplaceCounty , WorkplacePostcode , EmployeeStaffNo , NationalInsuranceNoA , NationalInsuranceNoB , NationalInsuranceNoC , DateSigned , EmployeeVolunteering , StaffFundraising , NoUpdates , DoNotGiveName , Signature , ipaddress , timeanddate , clientID )
VALUES (
'{$_POST['DonationType']}' ,
'{$_POST['Agency']}' ,
'{$_POST['CharityOne']}' ,
'{$_POST['CharityOneMonthlyPounds']}' ,
'{$_POST['CharityOneMonthlyPence']}' ,
'{$_POST['CharityOne4WeeklyPounds']}' ,
'{$_POST['CharityOne4WeeklyPence']}' ,
'{$_POST['CharityOneFortnightlyPounds']}' ,
'{$_POST['CharityOneFortnightlyPence']}' ,
'{$_POST['CharityOneWeeklyPence']}' ,
'{$_POST['CharityOneWeeklyPounds']}' ,
'{$_POST['CharityTwo']}',
'{$_POST['CharityTwoMonthlyPounds']}' ,
'{$_POST['CharityTwoMonthlyPence']}' ,
'{$_POST['CharityTwo4WeeklyPounds']}' ,
'{$_POST['CharityTwo4WeeklyPence']}' ,
'{$_POST['CharityTwoFortnightlyPounds']}' ,
'{$_POST['CharityTwoFortnightlyPence']}' ,
'{$_POST['CharityTwoWeeklyPence']}' ,
'{$_POST['CharityTwoWeeklyPounds']}' ,
'{$_POST['CharityThree']}' ,
'{$_POST['CharityThreeMonthlyPounds']}' ,
'{$_POST['CharityThreeMonthlyPence']}' ,
'{$_POST['CharityThree4WeeklyPounds']}' ,
'{$_POST['CharityThree4WeeklyPence']}' ,
'{$_POST['CharityThreeFortnightlyPounds']}' ,
'{$_POST['CharityThreeFortnightlyPence']}' ,
'{$_POST['CharityThreeWeeklyPence']}' ,
'{$_POST['CharityThreeWeeklyPounds']}' ,
'{$_POST['TotalPounds']}' ,
'{$_POST['TotalPence']}' ,
'{$_POST['Title']}' ,
'{$_POST['FirstName']}' ,
'{$_POST['SurName']}' ,
'{$_POST['Address1']}' ,
'{$_POST['Address2']}' ,
'{$_POST['Town']}' ,
'{$_POST['County']}' ,
'{$_POST['Postcode']}' ,
'{$_POST['TelephoneNo']}' ,
'{$_POST['MobileNo']}' ,
'{$_POST['Email']}' ,
'{$_POST['EmployersName']}' ,
'{$_POST['WorkplaceAddress1']}' ,
'{$_POST['WorkplaceAddress2']}' ,
'{$_POST['WorkplaceTown']}' ,
'{$_POST['WorkplaceCounty']}' ,
'{$_POST['WorkplacePostcode']}' ,
'{$_POST['EmployeeStaffNo']}' ,
'{$_POST['NationalInsuranceNoA']}' ,
'{$_POST['NationalInsuranceNoB']}' ,
'{$_POST['NationalInsuranceNoC']}' ,
'{$_POST['DateSigned']}' ,
'{$getEmployeeVolunteering}' ,
'{$getStaffFundraising}' ,
'{$getNoUpdates}' ,
'{$getDoNotGiveName}' ,
'{$_POST['Signature']}' ,
'{$_POST['ipaddress']}' ,
'{$_POST['timeanddate']}' ,
'{$_POST['clientID']}' )";
//echo $query;
$query = "SELECT * FROM go_donators WHERE timeanddate = '" . $_POST['timeanddate'] . "' AND clientID = '" . $_POST['clientID'] . "' AND Signature = '" . $_POST['Signature'] . "'; ";
$result = mysql_query($query) or die("Query failed on lookup");
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
extract($row);
$getDONORID = $ID;
}
$maker_URL = "https://www.givingonline.org.uk/donationform-". $getID . "-" . $getDONORID . ".html" ;
$read = fopen ( $maker_URL , "r" );
if ( !$read ) {
echo ( "Could not open $maker_URL" );
exit;
}
$HTML_output = "";
// read the HTML output while displaying it
while ($line = fgets ( $read , 256 )) {
$HTML_output.= $line;
}
fclose ( $read );
$message = $HTML_output;
$to = 'donors@givingonline.org.uk';
$subject = 'Giving Online Donation Confirmation';
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= 'From: ' . $Email . "\r\n" .
'Reply-To: ' . $Email . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
mail($Email, $subject, $message, $headers);
$message2 = '<p>Your form has been submitted, you will receive a confirmation email.</p>';
echo $message2;
$hideform = 'TRUE';
}
?>
<?php if ($hideform != 'TRUE') { ?>
<form action ="/<?php echo $getID;?>/index.html" method="post" ENCTYPE="multipart/form-data" id="RCform">
<input type="hidden" name="submitForm" value="true" />
<div id="innerform2">
<div align="right">
<div align="right">
<table width="659" cellpadding="4" cellspacing="4" bgcolor="#EEEFEF">
<tr>
<td height="25" colspan="2" align="left" bgcolor="#cccccc"><strong> Please select donation type </strong></td>
</tr><tr>
<td width="325" align="right" ><label>
This is a first time donation</label></td><td width="304" align="left" bgcolor="#EEEFEF" ><input type="radio" name="DonationType" value="New" tabindex="1" <?php if (($DonationType =='New') OR ($DonationType =='')) {;?> checked="checked"<?php };?>/></td>
</tr>
<tr>
<td align="right" bgcolor="#EEEFEF"><label>
This donation supersedes any previous donation given </label> </td><td align="left" bgcolor="#EEEFEF" ><input type="radio" name="DonationType" value="Supersedes" <?php if ($DonationType =='Supersedes') {;?> checked="checked"<?php };?> tabindex="2" /></td>
</tr>
<tr>
<td align="right" bgcolor="#EEEFEF"><label>
Add this donation to my existing donations</label></td><td align="left" bgcolor="#EEEFEF"><input type="radio" name="DonationType" value="Add" <?php if ($DonationType =='Add') {;?> checked="checked"<?php };?> tabindex="3" /></td>
</tr>
</table>
</div>
</div></div><div id="innerform2">
<div align="left">
<table width="659" border="0" cellpadding="4" cellspacing="4" bgcolor="#EEEFEF">
<tr>
<td bgcolor="#CCCCCC"><strong>I would like to give tax-free <br />
from my pay to: </strong></td>
<td bgcolor="#CCCCCC" ><div align="center"><strong>Monthly<br />
Amount</strong></div></td>
<td bgcolor="#CCCCCC" ><div align="center"><strong>4 Weekly<br />
Amount</strong></div></td>
<td bgcolor="#CCCCCC" ><div align="center"><strong>Fortnightly<br />
Amount
</strong></div></td>
<td bgcolor="#CCCCCC" ><div align="center"><strong>Weekly<br />
Amount</strong></div></td>
</tr>
<tr <?php
if (($CharityOnemissing == 'TRUE') OR (($CharityOneMonthlyPounds =='') AND ($CharityOneMonthlyPence == '') AND ($CharityOne4WeeklyPounds =='') AND ($CharityOne4WeeklyPence =='') AND ($CharityOneFortnightlyPounds =='') AND ($CharityOneFortnightlyPence =='') AND ($CharityOneWeeklyPounds =='') AND ($CharityOneWeeklyPence=='') AND ($_POST['submitForm'] == 'true'))) { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>>
<td width="31%" >
<input name="CharityOne" type="text" class="mainforms" size="30" onfocus="if (this.value=='Charity One') this.value='';" onBlur="if (this.value=='') this.value='Charity One'" value="<?php echo $CharityOne;?>" tabindex="4" /></td>
<td width="17%" ><div align="center">£
<input name="CharityOneMonthlyPounds" type="text" class="mainforms" value="<?php echo $CharityOneMonthlyPounds;?>" size="3" maxlength="3" tabindex="5" />
.
<input name="CharityOneMonthlyPence" type="text" class="mainforms" value="<?php echo $CharityOneMonthlyPence;?>" size="2" maxlength="2" tabindex="6" />
p
</div></td>
<td width="17%" ><div align="center">£
<input name="CharityOne4WeeklyPounds" type="text" value="<?php echo $CharityOne4WeeklyPounds;?>" class="mainforms" size="3" maxlength="3" tabindex="7" />
.
<input name="CharityOne4WeeklyPence" type="text" value="<?php echo $CharityOne4WeeklyPence;?>" class="mainforms" size="2" maxlength="2" tabindex="8" />
p
</div></td>
<td width="18%" ><div align="center">£
<input name="CharityOneFortnightlyPounds" type="text" value="<?php echo $CharityOneFortnightlyPounds;?>" class="mainforms" size="3" maxlength="3" tabindex="9" />
.
<input name="CharityOneFortnightlyPence" type="text" value="<?php echo $CharityOneFortnightlyPence;?>" class="mainforms" size="2" maxlength="2" tabindex="10" />
p
</div></td>
<td width="17%" ><div align="center">£
<input name="CharityOneWeeklyPounds" type="text" value="<?php echo $CharityOneWeeklyPounds;?>" class="mainforms" size="3" maxlength="3" tabindex="11" />
.
<input name="CharityOneWeeklyPence" type="text" value="<?php echo $CharityOneWeeklyPence;?>" class="mainforms" size="2" maxlength="2" tabindex="12" />
p
</div></td>
</tr>
<tr>
<td width="31%" bgcolor="#EEEFEF"> <input name="CharityTwo" type="text" class="mainforms" size="30" onfocus="if (this.value=='Charity Two') this.value='';" onBlur="if (this.value=='') this.value='Charity Two'" value="<?php echo $CharityTwo;?>" tabindex="13" /></td>
<td width="17%" ><div align="center">£
<input name="CharityTwoMonthlyPounds" type="text" value="<?php echo $CharityTwoMonthlyPounds;?>" class="mainforms" size="3" maxlength="3" tabindex="14" />
.
<input name="CharityTwoMonthlyPence" type="text" value="<?php echo $CharityTwoMonthlyPence;?>" class="mainforms" size="2" maxlength="2" tabindex="15" />
p
</div></td>
<td width="17%" bgcolor="#EEEFEF" ><div align="center">£
<input name="CharityTwo4WeeklyPounds" type="text" value="<?php echo $CharityTwo4WeeklyPounds;?>" class="mainforms" size="3" maxlength="3" tabindex="16" />
.
<input name="CharityTwo4WeeklyPence" type="text" value="<?php echo $CharityTwo4WeeklyPence;?>" class="mainforms" size="2" maxlength="2" tabindex="17" />
p
</div></td>
<td width="18%" bgcolor="#EEEFEF" ><div align="center">£
<input name="CharityTwoFortnightlyPounds" type="text" value="<?php echo $CharityTwoFortnightlyPounds;?>" class="mainforms" size="3" maxlength="3" tabindex="18" />
.
<input name="CharityTwoFortnightlyPence" type="text" value="<?php echo $CharityTwoFortnightlyPence;?>" class="mainforms" size="2" maxlength="2" tabindex="19" />
p
</div></td>
<td width="17%" bgcolor="#EEEFEF" ><div align="center">£
<input name="CharityTwoWeeklyPounds" type="text" value="<?php echo $CharityTwoWeeklyPounds;?>" class="mainforms" size="3" maxlength="3" tabindex="20" />
.
<input name="CharityTwoWeeklyPence" type="text" value="<?php echo $CharityTwoWeeklyPence;?>" class="mainforms" size="2" maxlength="2" tabindex="21" />
p
</div></td>
</tr>
<tr>
<td width="31%" bgcolor="#EEEFEF"> <input name="CharityThree" type="text" class="mainforms" size="30" onfocus="if (this.value=='Charity Three') this.value='';" onBlur="if (this.value=='') this.value='Charity Three'" value="<?php echo $CharityThree;?>" tabindex="22" /></td>
<td width="17%" ><div align="center">£
<input name="CharityThreeMonthlyPounds" type="text" value="<?php echo $CharityThreeMonthlyPounds;?>" class="mainforms" size="3" maxlength="3" tabindex="23" />
.
<input name="CharityThreeMonthlyPence" type="text" value="<?php echo $CharityThreeMonthlyPence;?>" class="mainforms" size="2" maxlength="2" tabindex="24" />
p
</div></td>
<td width="17%" bgcolor="#EEEFEF" ><div align="center">£
<input name="CharityThree4WeeklyPounds" type="text" value="<?php echo $CharityThree4WeeklyPounds;?>" class="mainforms" size="3" maxlength="3" tabindex="25" />
.
<input name="CharityThree4WeeklyPence" type="text" value="<?php echo $CharityThree4WeeklyPence;?>" class="mainforms" size="2" maxlength="2" tabindex="26" />
p
</div></td>
<td width="18%" bgcolor="#EEEFEF" ><div align="center">£
<input name="CharityThreeFortnightlyPounds" type="text" value="<?php echo $CharityThreeFortnightlyPounds;?>" class="mainforms" size="3" maxlength="3" tabindex="27" />
.
<input name="CharityThreeFortnightlyPence" type="text" value="<?php echo $CharityThreeFortnightlyPence;?>" class="mainforms" size="2" maxlength="2" tabindex="28" />
p
</div></td>
<td width="17%" bgcolor="#EEEFEF" ><div align="center">£
<input name="CharityThreeWeeklyPounds" type="text" value="<?php echo $CharityThreeWeeklyPounds;?>" class="mainforms" size="3" maxlength="3" tabindex="29" />
.
<input name="CharityThreeWeeklyPence" type="text" value="<?php echo $CharityThreeWeeklyPence;?>" class="mainforms" size="2" maxlength="2" tabindex="30" />
p
</div></td>
</tr>
<tr>
<td bgcolor="#EEEFEF" > </td>
<td > </td>
<td bgcolor="#EEEFEF" > </td>
<td bgcolor="#EEEFEF" > </td>
<td bgcolor="#EEEFEF" > </td>
</tr>
<td colspan="2" bgcolor="#EEEFEF" >Enter total amount to be deducted each pay day:</td>
<td bgcolor="#EEEFEF" ><div align="center">£
<input name="TotalPounds" type="text" value="<?php echo $TotalPounds;?>" class="mainforms" size="3" tabindex="31" />
.
<input name="TotalPence" type="text" value="<?php echo $TotalPence;?>" class="mainforms" size="2" tabindex="31" />
p</div></td>
<td bgcolor="#EEEFEF" > </td>
<td bgcolor="#EEEFEF" > </td>
</tr>
</table>
</div>
</div>
<div id="innerform2">
<div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="87%"><table width="659" border="0" align="left" cellpadding="4" cellspacing="4" style="border:1px solid #cccccc;" class="mainforms" bgcolor="#EEEFEF" >
<tr>
<td height="25" colspan="2" bgcolor="#cccccc"><span class="style10"><strong>DECLARATION: I certify that my payroll donations to charity are not being made under Gift Aid. </strong></span><span class="style9"></span></td>
</tr>
<tr>
<td width="156" align="right"><span class="style9">Title:</span></td>
<td width="473" <?php if ($titlemissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><span class="style9">
<select name="Title" id="Title" class="mainforms" tabindex="32" >
<?php if ($Title !='') {;?> <option value="<?php echo $Title;?>"><?php echo $Title;?></option> <?php } else {;?> <option value="">-- Please Select --</option><?php };?>
<option value="Mr" >Mr</option>
<option value="Mrs" >Mrs</option>
<option value="Ms" >Ms</option>
<option value="Miss" >Miss</option>
<option value="Dr" >Dr</option>
<option value="Prof" >Prof</option>
<option value="Rev" >Rev</option>
<option value="Othr" >Other</option>
</select>
</span></td>
</tr>
<tr>
<td align="right"><span class="style9">First Name: </span></td>
<td <?php if ($firstnamemissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><span class="style9">
<input type="text" name="FirstName" value="<?php echo $FirstName;?>" id="FirstName" maxlength="14" size="32" class="mainforms" tabindex="33" />
</span></td>
</tr>
<tr>
<td align="right"><span class="style9">Last Name: </span></td>
<td <?php if ($surnamemissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><span class="style9">
<input type="text" name="SurName" value="<?php echo $SurName;?>" id="SurName" maxlength="13" size="32" class="mainforms" tabindex="34" />
</span></td>
</tr>
<tr>
<td align="right"><span class="style9">Email address: </span></td>
<td <?php if ($emailmissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><span class="style9">
<input type="text" name="Email" value="<?php echo $Email;?>" id="Email" size="32" class="mainforms" tabindex="35" />
</span></td>
</tr>
<tr>
<td align="right"><span class="style9">Telephone number: </span></td>
<td <?php if ($telephonemissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><span class="style9">
<input type="text" name="TelephoneNo" value="<?php echo $TelephoneNo;?>" id="TelephoneNo" maxlength="12" size="32" class="mainforms" tabindex="36" />
</span></td>
</tr>
<tr>
<td align="right"><span class="style9">Mobile number: </span></td>
<td><span class="style9">
<input type="text" name="MobileNo" value="<?php echo $MobileNo;?>" id="MobileNo" maxlength="12" size="32" class="mainforms" tabindex="37" />
</span></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div id="innerform2">
<div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="659" border="0" align="center" cellpadding="4" cellspacing="4" style="border:1px solid #cccccc;" class="mainforms" bgcolor="#EEEFEF" >
<tr>
<td colspan="2" height="25" bgcolor="#cccccc"><span class="style10"><strong>Your Address </strong></span><span class="style9"></span></td>
</tr>
<tr>
<td width="156" align="right"><span class="style9">Address line 1: </span></td>
<td <?php if ($address1missing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><span class="style9">
<input type="text" name="Address1" value="<?php echo $Address1;?>" id="Address1" maxlength="29" size="32" tabindex="38" class="mainforms" />
</span></td>
</tr>
<tr>
<td align="right"><span class="style9">Address line 2: </span></td>
<td bgcolor="#EEEFEF"><span class="style9">
<input type="text" name="Address2" value="<?php echo $Address2;?>" id="Address2" maxlength="17" size="32" tabindex="39" class="mainforms" />
</span></td>
</tr>
<tr>
<td align="right"><span class="style9">Town / City: </span></td>
<td <?php if ($townmissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><span class="style9">
<input type="text" name="Town" value="<?php echo $Town;?>" id="Town" maxlength="11" size="32" tabindex="40" class="mainforms" />
</span></td>
</tr>
<tr>
<td align="right"><span class="style9">County: </span></td>
<td <?php if ($countymissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><input name="County" type="text" class="mainforms" id="County" tabindex="41" value="<?php echo $County;?>" size="32" maxlength="20" /></td>
</tr>
<tr>
<td align="right"><span class="style9">Postcode: </span></td>
<td <?php if ($postcodemissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><span class="style9">
<input type="text" name="Postcode" value="<?php echo $Postcode;?>" id="Postcode" maxlength="8" size="8" tabindex="43" class="mainforms" />
</span></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div id="innerform2">
<div align="left">
<table width="659" border="0" align="center" cellpadding="4" cellspacing="4" style="border:1px solid #cccccc;" class="mainforms" bgcolor="#EEEFEF" >
<tr>
<td colspan="2" height="25" bgcolor="#cccccc"><span class="style10"><strong>Your Employment details </strong></span><span class="style9"></span></td>
</tr>
<tr>
<td width="156" align="right"><span class="style9">Employer's name (in full): </span></td>
<td width="473" <?php if ($employermissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><span class="style9">
<input type="text" name="EmployersName" value="<?php echo $EmployersName;?>" id="EmployersName" maxlength="27" size="55" tabindex="44" class="mainforms" />
</span></td>
</tr> <tr>
<td width="156" align="right"><span class="style9">Work
Address line 1: </span></td>
<td width="473" <?php if ($workplace1missing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><span class="style9">
<input type="text" name="WorkplaceAddress1" value="<?php echo $WorkplaceAddress1;?>" id="WorkplaceAddress1" maxlength="29" size="32" tabindex="45" class="mainforms" />
</span></td>
</tr>
<tr>
<td align="right"><span class="style9">Work Address line 2: </span></td>
<td bgcolor="#EEEFEF"><span class="style9">
<input type="text" name="WorkplaceAddress2" value="<?php echo $WorkplaceAddress2;?>" id="WorkplaceAddress2" maxlength="17" size="32" tabindex="46" class="mainforms" />
</span></td>
</tr>
<tr>
<td align="right"><span class="style9">Work Town / City: </span></td>
<td <?php if ($workplacetownmissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><span class="style9">
<input type="text" name="WorkplaceTown" value="<?php echo $WorkplaceTown;?>" id="WorkplaceTown" maxlength="11" size="32" tabindex="47" class="mainforms" />
</span></td>
</tr>
<tr>
<td align="right"><span class="style9">Work County: </span></td>
<td <?php if ($workplacecountymissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><input name="WorkplaceCounty" type="text" class="mainforms" id="WorkplaceCounty" tabindex="48" value="<?php echo $WorkplaceCounty;?>" size="32" maxlength="20" /></td>
</tr>
<tr>
<td align="right"><span class="style9">Postcode: </span></td>
<td <?php if ($workplacepostcodemissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>><span class="style9">
<input type="text" name="WorkplacePostcode" value="<?php echo $WorkplacePostcode;?>" id="WorkplacePostcode" maxlength="8" size="8" tabindex="50" class="mainforms" />
</span></td>
</tr>
<tr>
<td align="right" valign="top" style="border-top:7px solid #EEEFEF;"><span class="style9"> Employee/Staff Number: </span></td>
<td bgcolor="#EEEFEF"><input type="text" name="EmployeeStaffNo" value="<?php echo $EmployeeStaffNo;?>" id="firstname5" maxlength="12" size="12" tabindex="51" class="mainforms" />
Normally found on payslip.
We cannot identify your gifts without it.</td>
</tr>
<tr>
<td align="right"><span class="style9">NI Number: </span></td>
<td bgcolor="#EEEFEF"><span class="style9">
</span>
<table width="16%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="20%" align="left" ><span class="style9">
<input type="text" name="NationalInsuranceNoA" value="<?php echo $NationalInsuranceNoA;?>" id="NationalInsuranceNoA" maxlength="2" size="2" tabindex="63" class="mainforms" />
</span></td>
<td width="55%" align="center" ><span class="style9">
<input type="text" name="NationalInsuranceNoB" value="<?php echo $NationalInsuranceNoB;?>" id="NationalInsuranceNoB" maxlength="6" size="6" tabindex="64" class="mainforms" />
</span></td>
<td width="25%" align="center" ><span class="style9">
<input type="text" name="NationalInsuranceNoC" value="<?php echo $NationalInsuranceNoC;?>" id="NationalInsuranceNoC" maxlength="1" size="1" tabindex="65" class="mainforms" />
</span></td>
</tr>
</table> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div id="innerform2">
<div align="right">
<div align="right">
<table width="659" cellpadding="4" cellspacing="4" bgcolor="#EEEFEF">
<tr>
<td height="25" colspan="2" align="left" bgcolor="#cccccc"><div align="left"><strong>Your Digital signature</strong></div></td>
</tr><tr>
<td width="156" align="right" >Enter your name:</td>
<td width="471" align="left" <?php if ($sigmissing == 'TRUE') { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>>
<span class="style9">
<input type="text" name="Signature" value="<?php echo $Signature;?>" id="Signature" maxlength="50" size="50" tabindex="72" class="mainforms" />
</span></td>
</tr>
<tr>
<td align="left" bgcolor="#EEEFEF" colspan="2">
<strong>Please tick here if you are interested in</strong> Employee Volunteering
<input type="checkbox" name="EmployeeVolunteering" <?php if ($EmployeeVolunteering =='Yes') {;?> checked="checked"<?php };?> value="Yes" tabindex="73" />
Or Staff Fundraising for Charity
<input type="checkbox" name="StaffFundraising" <?php if ($StaffFundraising =='Yes') {;?> checked="checked"<?php };?> value="Yes" tabindex="74" /></td>
</tr><tr>
<td colspan="2" align="center" bgcolor="#EEEFEF">No part of your Donation is taken by us in Commission.
We are paid a fee from the charity based on results.</td>
</tr>
</table>
</div>
</div></div>
<div id="innerform2"><strong></strong>
<div align="right">
<div align="right">
<table width="659" cellpadding="4" cellspacing="4" bgcolor="#EEEFEF">
<tr>
<td colspan="2" height="25" bgcolor="#cccccc"><div align="left"><strong>Data Protection</strong></div></td>
</tr><tr>
<td align="left" ><strong>Data Protection Act:</strong> The data supplied on this form will be used to enable your donations to reach your chosen charity/charities. In order that
your instructions can be acted on, your details will be passed to Her Majesty's Revenue & Customs registered Agency, with whom your employer
has contracted, who will forward your donation to your chosen charity/ies. Your chosen charity/ies may send you a thank you letter
acknowledging your donation.</td>
</tr>
<tr>
<td align="left" bgcolor="#EEEFEF"><input type="checkbox" name="NoUpdates" <?php if ($NoUpdates =='Yes') {;?> checked="checked"<?php };?> value="Yes" tabindex="75" />
Please tick here if you do not wish to receive updates and communications from your chosen charity about how your support is being
used, or about special projects, events or appeals.</td>
</tr>
<tr>
<td align="left" bgcolor="#EEEFEF"><input type="checkbox" name="DoNotGiveName" <?php if ($DoNotGiveName =='Yes') {;?> checked="checked"<?php };?> value="Yes" tabindex="76" />
Please tick here if you do not wish your name to be given to any other charitable organisations whose mission, the above charities
feel may be of interest to you.</td>
</tr>
</table>
</div>
</div></div>
<div id="innerform2"><strong></strong>
<div align="right">
<div align="right">
<table width="659" cellpadding="4" cellspacing="4" bgcolor="#EEEFEF">
<tr>
<td colspan="3" height="25" bgcolor="#cccccc"><div align="left"><strong>Form Security information </strong></div></td>
</tr>
<tr>
<td width="156" align="right"><label class="bodycopy">Security Code:<br />
(enter code on right)</label></td>
<td width="318" align="left" <?php if (($security_codemissing == 'TRUE') OR ($codeisinvalid == 'TRUE') AND ($_POST['submitForm'] == 'true')) { echo "bgcolor=\"#FF0000\"" ; } else { echo "bgcolor=\"#EEEFEF\"" ; } ?>>
<input name="security_code" type="text" class="mainforms" id="security_code" style="width:48%; margin:0 8px 0 0 ;float:left;" />
<img src="https://www.givingonline.org.uk/CaptchaSecurityImages.php?width=100&height=40&characters=5" align="absmiddle" />
<?php // echo $codeisinvalid ;?>
</td>
<td width="143" align="left"> </td>
</tr><tr>
<Td align="right"><?
$logged_string = "$REMOTE_ADDR ";?>Your IP Address:</Td><td colspan="2" align="left"><?php echo $logged_string;?>
<input type="hidden" name="ipaddress" value="<?php echo $logged_string;?>"></td>
</tr>
<tr>
<Td align="right"><?
$gettime = date('H:i:s', strtotime('-1 Hours'));
$logged_datetimestring = date("j M Y");?>Time/Date Stamp:</Td>
<td colspan="2" align="left"><?php echo $logged_datetimestring;?> <?php echo $gettime;?>
<input type="hidden" name="timeanddate" value="<?php echo $logged_datetimestring;?> <?php echo $gettime;?>">
<input type="hidden" name="clientID" value="[<?php echo $getID;?>] <?php echo $gettitle;?>">
<input type="hidden" name="getID" value="<?php echo $getID;?>">
<input type="hidden" name="Agency" value="<?php echo $getagency;?>">
<input type="hidden" name="DateSigned" value="<?php echo $logged_datetimestring;?>"> </td>
</tr>
<tr>
<Td width="156" align="right" valign="top">SSL Encryption: </Td>
<td colspan="2" align="left" valign="top"><img src="https://www.givingonline.org.uk/images/quickssl_static.gif" alt="Geotrust" width="73" height="35" align="right" style="padding-right:30px;"/>This page is protected with a Geotrust SSL
with up to 256-bit encryption.
Your confidential
information cannot be viewed, intercepted or altered.</td>
</tr>
</table>
</div>
</div></div>
<div align="center">
<input name="submit" type="submit" value="Submit" align="middle" tabindex="77"/>
</div>
</form>
<?php };?>
</div>
</div><br />
</div>
</div>
<div id="ftr" align="left"> (c) Payroll Giving </div>
</div>
</body>
</html>
|