Merge remote-tracking branch 'origin/github/pr/45'
[grml.org.git] / php-mailer / mailform_report.php
1 <?php
2 $name = ($_POST['name']) ? $_POST['name'] : '';
3 $email = ($_POST['email']) ? $_POST['email'] : '';
4 $package = ($_POST['package']) ? $_POST['package'] : '';
5 $comments = ($_POST['comments']) ? stripslashes($_POST['comments']) : '';
6 ?>
7 <br>
8 <form action="" method="post">
9 <div style="background:#f0f0f0;padding:3px;font-size:70%">
10 <div style="background:#e0e0e0;padding:2px;font-weight:bold">Your message:</div>
11 <label for="name">Your name:</label><br />
12 <input size="25" type="text" name="name" id="name" value="<?="$name"?>" onfocus="this.style.backgroundColor='#DDD'" onblur="this.style.backgroundColor='#FEDB64'" /><br />
13
14 <label for="email">Your mailaddress:</label><br />
15 <input size="25" type="text" name = "email" id="email" value="<?="$email"?>" onfocus="this.style.backgroundColor='#DDD'" onblur="this.style.backgroundColor='#FEDB64'" /><br />
16
17 <label for="package">Name of package:</label><br />
18 <input size="25" type="text" name = "package" id="package" value="<?="$package"?>" onfocus="this.style.backgroundColor='#DDD'" onblur="this.style.backgroundColor='#FEDB64'" /><br />
19
20 <br /><label for="comments">Optional notes (homepage, sources, license,...):</label><br />
21 <textarea name="comments" id="comments" style="width:95%" rows="15" onfocus="this.style.backgroundColor='#DDD'" onblur="this.style.backgroundColor='#FEDB64'"><?php echo htmlspecialchars($comments); ?></textarea><br /><br />
22
23 <input name="nopreview" type="hidden" value="1">
24 <input name="nopreview" id="nopreview" type="checkbox" value="0" checked="checked" /><label for="nopreview">show preview</label><br />
25
26 <p>
27 <input name="submit" type="submit" value="Submit message" />
28 </p>
29 </div>
30 </form>