Jump to content

luvnrocs

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

luvnrocs's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I guess I should elaborate on my issue. In the php file (thank.php), the location where the checkbox value needs to get displayed is within a $body tag for the email. I'm not sure how to format an if statement within the $body tag so that it works properly. I tried to insert an if statement but it didn't work and I think it needs some sort of separation coding to work right.
  2. Hi - I'm trying to work with some files that were created by someone else and I'm hoping to not have to start from scratch. There is an html (nominate.html) file that is a form with text fields, checkboxes and radio buttons; which upon submission points to a thank you page (thanks.php) which displays a webpage and also sends an email. The problem I'm having is with the checkboxes information. I can't get it to display in the email message. Ultimately I'd like it to display any and all of the boxes that are checked. Thanks! nominate.html <!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>Infinite Mile Award Nomination Form: Rewards and Recognition: MIT Libraries</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="main.css" rel="stylesheet" type="text/css"> <link href="footer.css" rel="stylesheet" type="text/css"> <link href="header.css" rel="stylesheet" type="text/css"> <link href="ask.css" rel="stylesheet" type="text/css"> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="15"> <tr class="top"> <td colspan="3" valign="middle" class="dash"><!--#include virtual="header.txt" --></td> </tr> <tr> <td valign="top" bgcolor="#FFFFFF"> <p class="breadcrumb"> <a href="index.html">R+R Home</a> > <a href="im.html">IM Award Home</a></p> <h2>Infinite Mile Award Nomination Form </h2> <p>Before you start, see: Winning <a href="samples.html">Sample Nominations</a> and <a href="tips.html">Tips for Writing Successful Nominations</a></p> <p class="note"><strong>Please note:</strong><br> - you may use the <a href="nominate.doc">MSWord form</a> instead<br> - if you want to use the web form but don't have time to finish, you may have it emailed to yourself, rather than submitted</p> <form action="thanks.php" method="post"> <fieldset> <legend> Your Information </legend> <p> Your name: <input name="nominator" type="text" size="75"/> </p> <p> Your email: <input name="email" type="text" size="75" /> </p> <p> Your department/unit: <input name="dept" type="text" size="75" /> </p> <p> <label class="topalign">If other staff are helping with the nomination, list them here:</label> <textarea name="others" cols="50" rows="3" wrap="hard"></textarea> </p> <p class="note"> </p> </fieldset> <p> </p> <fieldset> <legend><a></a> About the Nominee(s) </legend> <p> 1. Name of individual or team you are nominating (please list individuals on team, if known): </p> <p> <textarea name="nominee" cols="90" rows="3" wrap="hard"></textarea> </p> <p class="note"><strong>Note:</strong> A team is defined as any group working together with a common purpose or to achieve a common goal. There is no size restriction - a team can be as few as two people and as many as an entire department.</p> <p> 2. Describe your working relationship with the nominee(s): </p> <p> <textarea name="relationship" cols="90" rows="3" wrap="hard"></textarea> </p> <p class="note"><strong>Some examples of working relationships:</strong></p> <p class="note">I work with this individual in the same department.<br> I work on a team or group with this individual. <br> He/she is my colleague, supervisor, supervisee, or department head. <br> We work in different departments, but worked together on a project or team. </p> <p> 3. Choose the award category (you may select more than one): </p> <p class="note">[open <a href="about-im.html#criteria" target="blank">descriptions of awards</a> in a new tab/window]</p> <p> <input type="checkbox" name="category" value="innovation"> Innovation and Creativity<br> <input type="checkbox" name="category" value="communication"> Communication and Collaboration<br> <input type="checkbox" name="category" value="results"> Results, Outcome, and Productivity<br> <input type="checkbox" name="category" value="community"> Community<br> <input type="checkbox" name="category" value="unsung"> Unsung Hero</p> <p> 4. Describe the nominee's contribution, and how, specifically, this work relates to the criteria and descriptions of each award: </p> <p> <textarea name="nomination" cols="90" rows="10" wrap="hard"></textarea> </p> </p> <p class="note">Give your nomination the best chance of succeeding! It's great to write a few sentences about your colleagues, but most succesful nominations are a bit more meaty and address the specific points listed in the category descriptions. For help and ideas, see: </p> <p class="note">- <a href="tips.html">Nomination writing tips</a><br> - <a href="samples.html">Samples of succcessful nominations</a> </p> <p> 5. Was this contribution for a one-time activity or has this effort been continuous? </p> <p> <input type="radio" name="continuous" value="one-time"> One-time <br> <input type="radio" name="continuous" value="continuous"> Continuous</p> 6. Notes, or other information: </p> <p> <textarea name="notes" cols="100" rows="3" wrap="hard"></textarea> </p> </p> </fieldset> <h2>Choose one:</h2> <p> <input type="submit" value="SUBMIT NOMINATION" name="submit" > This nomination is finished, send to the R+R Committee. </p> <p>OR</p> <p><INPUT name="notready" TYPE="submit" VALUE="Email to me" > I haven't finished this nomination, please email me what I have so far. </p> </form> <p> </p> </td> <td rowspan="2" valign="top" bgcolor="#FFFFFF"> <br /> <p> </p><p> </p></td> </tr> <tr> <td valign="bottom" bgcolor="#FFFFFF"><p class="breadcrumb"><!--#config timefmt="%D" --> This page was last updated on <!--#echo var="LAST_MODIFIED" --> </p></td> </tr> </table> </body> </html> thanks.php <!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>Thanks: Infinite Mile Nomination: Rewards and Recognition: MIT Libraries</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="main.css" rel="stylesheet" type="text/css"> <link href="footer.css" rel="stylesheet" type="text/css"> <link href="header.css" rel="stylesheet" type="text/css"> <link href="ask.css" rel="stylesheet" type="text/css"> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="15"> <tr class="top"> <td colspan="3" valign="middle" class="dash"><?php include("header.txt"); ?></td> </tr> <tr> <td valign="top" bgcolor="#FFFFFF"> <p class="breadcrumb"> <a href="index.html">R+R Home</a> > <a href="im.html">IM Award Home</a></p> <p> </p> <?php //$nominator = stripslashes($_REQUEST['nominator']); //$email = stripslashes($_REQUEST['email']); //$dept = stripslashes($_REQUEST['dept']); //$others = stripslashes($_REQUEST['others']); //$nominee = stripslashes($_REQUEST['nominee']); //$relationship = stripslashes($_REQUEST['relationship']); //$category = stripslashes($_REQUEST['category']); //$nomination = stripslashes($_REQUEST['nomination']); //$continuous = stripslashes($_REQUEST['continuous']); //$notes = stripslashes($_REQUEST['notes']); $submit = $_REQUEST['submit']; function submit_nom() { $nominator = stripslashes($_REQUEST['nominator']); $email = stripslashes($_REQUEST['email']); $dept = stripslashes($_REQUEST['dept']); $others = stripslashes($_REQUEST['others']); $nominee = stripslashes($_REQUEST['nominee']); $relationship = stripslashes($_REQUEST['relationship']); //$category = stripslashes($_REQUEST['category']); $nomination = stripslashes($_REQUEST['nomination']); $continuous = stripslashes($_REQUEST['continuous']); $notes = stripslashes($_REQUEST['notes']); $submit = $_REQUEST['submit'];echo "<strong>Thank you $nominator!</strong>\n<br><br>"; echo "Your nomination has been submitted to the Rewards and Recognition Committee and you also will receive a copy of the nomination via email."; //Send email to Robin $body = "Thank you for submitting an Infinite Mile Award nomination! Your nomination has been forwarded to the Rewards + Recognition Committee. If you have any questions, please contact rr-lib@mit.edu. =================== Nominator: $nominator Email: $email Dept/Unit: $dept Other staff: $others Relationship: $relationship Nominee: $nominee Category: $category Nomination: $nomination Was this contribution for a one-time activity or has this effort been continuous? $continuous Notes or other information: $notes"; $headers = "From: $email\r\n"; $headers .= "CC: $email\r\n"; mail ('rmdead@mit.edu', 'Infinite Mile nomination submitted', $body, $headers); } function email_me() { $nominator = stripslashes($_REQUEST['nominator']); $email = stripslashes($_REQUEST['email']); $dept = stripslashes($_REQUEST['dept']); $others = stripslashes($_REQUEST['others']); $nominee = stripslashes($_REQUEST['nominee']); $relationship = stripslashes($_REQUEST['relationship']); $category = stripslashes($_REQUEST['category']); $nomination = stripslashes($_REQUEST['nomination']); $continuous = stripslashes($_REQUEST['continuous']); $notes = stripslashes($_REQUEST['notes']); $submit = $_REQUEST['submit']; echo "<strong>Thank you $nominator!</strong>\n<br><br>"; echo "Your nomination has NOT been submitted and the Rewards and Recognition Committee will NOT receive it - only you will receive a copy of the email. To submit the nomination when you are ready, you may either use the information in the email you receive to fill out the form again, or you may edit the email and send it to the committee."; //Send email to Nominator only $body = "PLEASE NOTE: This nomination has *not* been submitted! On the nomination form you selected the option to have what you had completed so far emailed to you. No one on the Rewards and Recognition Committee has received this nomination. To submit this nomination, either use this information to fill out the form again (http://libstaff.mit.edu/admin/rrprogram/nominate.html), or you may edit the message below and send it to: rmdead@mit.edu. =================== Nominator: $nominator Email: $email Dept/Unit: $dept Other staff: $others Relationship: $relationship Nominee: $nominee Category: $category Nomination: $nomination Was this contribution for a one-time activity or has this effort been continuous? $continuous Notes or other information: $notes"; $headers = "From: $email\r\n"; mail ($email, 'Infinite Mile nomination - NOT submitted!', $body, $headers); } if($submit == "SUBMIT NOMINATION") { submit_nom(); } else { email_me(); } ?> <p> </p> <p>Questions? Problems? Email: <a href="mailto:rr-lib@mit.edu">rr-lib@mit.edu</a></p> <p> </p> </td> <td rowspan="2" valign="top" bgcolor="#FFFFFF"> <br /> <p> </p></td> </tr> <tr> <td valign="bottom" bgcolor="#FFFFFF"><p class="breadcrumb"><!--#config timefmt="%D" --> This page was last updated on <?php $modified = stat("thanks.php"); echo date("m/d/Y", $modified[9]); ?> </p></td> </tr> </table> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.