<html> <head> <title>Application for KKLS</title> <style type="text/css"> .form{ position: fixed; top: 90px; left: 90px; } body{ background-color: #000000; color: #ffffff !important; } </style> </head> <body> <div class="form"> <form name="Application" method="post" action="Application_send.php"> <table width="450px"> </tr> <tr> <td valign="top"> <label for="name">First Name *</label> </td> <td valign="top"> <input type="text" name="name" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top""> <label for="psn">PSN *</label> </td> <td valign="top"> <input type="text" name="PSN" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="residence">were do you live *</label> </td> <td valign="top"> <input type="text" name="residence" maxlength="80" size="30"> </td> </tr> <tr> <td valign="top"> <label for="DOB">Date Of Birth *</label> </td> <td valign="top"> <input type="text" name="DOB" maxlength="30" size="30"> </td> </tr> <tr> <td valign="top"> <label for="strengths">Brief desciption of strengths and weaknesses on COD? *</label> </td> <td valign="top"> <textarea name="strengths" maxlength="1500" cols="25" rows="8"></textarea> </td> <tr> <td valign="top"> <label for="active">How actively are you on COD? *</label> </td> <td valign="top"> <textarea name="active" maxlength="100" cols="25" rows="3"></textarea> </td> </tr> <tr> <td valign="top"> <label for="role">If you were put on a team what would you want your role to be? *</label> </td> <td valign="top"> <textarea name="role" maxlength="100" cols="25" rows="3"></textarea> </td> </tr> <tr> <td valign="top"> <label for="KKLS">What makes you right for KKLS? *</label> </td> <td valign="top"> <textarea name="KKLS" maxlength="1500" cols="25" rows="8"></textarea> </td> </tr> </tr> <tr> <td colspan="2" style="text-align:center"> <input type="submit" value="Submit"> </td> </tr> </table> </form> </div> </body> </html>
<?php $field_name = $_POST['name']; $field_PSN = $_POST['PSN']; $field_residence = $_POST['residence']; $field_DOB = $_POST['DOB']; $field_strengths = $_POST['strengths']; $field_active = $_POST['active']; $field_role = $_POST['role']; $field_KKLS = $_POST['KKLS']; $mail_to = 'kkls@klutchkillas.com'; $subject = 'KKLS application '.$field_name; $body_message = 'Applicant: '.$field_name."\n"; $body_message .= 'PSN: '.$field_PSN."\n"; $body_message .= 'Residence: '.$field_residence."\n"; $body_message .= 'DOB: '.$field_DOB."\n"; $body_message .= 'strengths: '.$field_strengths."\n"; $body_messege .= 'active: '.$field_active."\n"; $body_messege .= 'role: '.$field_role."\n"; $body_messege .= 'KKLS: '.$field_KKLS."\n"; $headers = 'From: '.$field_psn."\r\n"; $headers .= 'Reply-To: '.$field_psn."\r\n"; $mail_status = mail($mail_to, $subject, $body_message, $headers); if ($mail_status) { ?> <script language="javascript" type="text/javascript"> alert('Thank you for your interest in Klutch Killas. for the next step in the aplication prosseces go <a href=klutchkillas.com>here</a>'); window.location = 'formz'; </script> <?php } else { ?> <script language="javascript" type="text/javascript"> alert('Message failed. Please, send an email to kkls@klutchkillas.com'); window.location = 'klutchkillas.com'; </script> <?php } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)