<pre lang="PHP">
<body> <form name="FromID" method="post"><br> <br> <div align="center" style="font-family:Times New Roman; font-size:25px;font-weight:bold; ">COMPLAINTS ASSIGNED</div> <br> <br> <table border="1%" cellpadding="0" cellspacing="0" align="center" style="width:25%"> <tr> <td colspan="2" width="5"><b>Staff Members</b></td> <td> <select id="staff" name="staff"> <option value="s1">Athiyamaan</option> <option value="s2">Pazhanivel</option> <option value="s3">Sampath</option> <option value="s4">Sundharamoorthy</option> <option value="s5">Karthik</option> <option value="s6">Prabaharan</option> </select> </td> </tr> <tr> <td colspan="2" width="5"><b>E-mail</b></td> <td><input type="text" name="email" size="19" placeholder="Enter email ID" required> </td></tr> <tr> <td colspan="2" width="5"><b>Comments</b></td> <td><textarea id="msg" name="msg" rows="6" name="message" cols="20" required></textarea></td> </tr> <tr><td colspan="4" align="center"> <input type='submit' value='submit' name="submit"></td> </tr> <?php if(isset($_POST['submit'])) { $to = "rizwanamtech93@gmail.com"; $subject = "Remarks"; $name_field = $_POST['staff']; $email_field = $_POST['email']; $message = $_POST['message']; $body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message"; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); //echo "Data has been submitted to $to!"; $success = mail($to, $subject, $body,$headers); } /*else { echo "blarg!"; }*/ ?> </table><br><br> </form> </body>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)