Merge remote-tracking branch 'origin/github/pr/45'
[grml.org.git] / php-mailer / mailform_betatester.php
1 <?php
2 $name = ($_POST['name']) ? $_POST['name'] : 'Your name';
3 $email = ($_POST['email']) ? $_POST['email'] : 'Your E-Mail-Address';
4 $hardware = ($_POST['hardware']) ? stripslashes($_POST['hardware']) : '';
5 $software = ($_POST['software']) ? stripslashes($_POST['software']) : '';
6 $language = ($_POST['language']) ? $_POST['language'] : '';
7 ?>
8 <br>
9 <form action="" method="post">
10 <div style="background:#f0f0f0;padding:3px;font-size:70%">
11 <div style="background:#e0e0e0;padding:2px;font-weight:bold">Your message:</div>
12 <label for="name">Your name:</label><br />
13 <input size="25" type="text" name="name" id="name" value="<?="$name"?>" onfocus="if(this.value=='Your name'){this.value='';} this.style.backgroundColor='#DDD'" onblur="this.style.backgroundColor='#FEDB64'" /><br />
14
15 <label for="email">Your mailaddress:</label><br />
16 <input size="25" type="text" name = "email" id="email" value="<?="$email"?>" onfocus="if(this.value=='Your E-Mail-Address'){this.value='';} this.style.backgroundColor='#DDD'" onblur="this.style.backgroundColor='#FEDB64'" /><br />
17
18 <label for="language">Which languages do you speak? (english, german,...)</label><br />
19 <input size="50" type="text" name = "language" value="<?="$language"?>" onfocus="if(this.value=='Your languages'){this.value='';} this.style.backgroundColor='#DDD'" onblur="this.style.backgroundColor='#FFCC00'"><br />
20
21 <br /><label for="hardware">Which hardware do/could you use for testing grml? (architecture, processor, external devices,...)</label><br />
22 <textarea name="hardware" id="hardware" style="width:95%" rows="15" onfocus="this.style.backgroundColor='#DDD'" onblur="this.style.backgroundColor='#FEDB64'"><?php echo htmlspecialchars($hardware); ?></textarea><br /><br />
23
24 <br /><label for="software">Any special software you can/would like to test on grml?</label><br />
25 <textarea name="software" id="software" style="width:95%" rows="15" onfocus="this.style.backgroundColor='#DDD'" onblur="this.style.backgroundColor='#FEDB64'"><?php echo htmlspecialchars($software); ?></textarea><br /><br />
26
27 <input name="nopreview" type="hidden" value="1">
28 <input name="nopreview" id="nopreview" type="checkbox" value="0" checked="checked" /><label for="nopreview">show preview</label><br />
29
30 <p>
31 <input name="submit" type="submit" value="Submit message" />
32 </p>
33 </div>
34 </form>