source: irpg/trunk/contact.php@ 1449

Last change on this file since 1449 was 1449, checked in by skalpette, 19 years ago

Import initial

File size: 1.4 KB
Line 
1<?php
2
3include("config.php");
4
5$irpg_page_title = "Contact";
6
7include("header.php");
8
9 echo "<h1>Contact</h1>";
10 if ($_POST['from'] && $_POST['text']) {
11 mail($admin_email,"IRPG: ".$_POST['from'],
12 "Name: ".$_POST['name']."\nE-mail: ".$_POST['from']."\n\n".
13 $_POST['text'],"From: ".$_POST['from']."\r\n");
14 echo(' <blockquote>Merci pour le message.</blockquote>');
15 }
16 else {
17 echo('
18 <form method="post" action="contact.php">
19 <table border="0">
20 <tr>
21 <th align="left"><label for="from">Adresse email</label>:</th>
22 <td align="right">
23 <input type="text" size="20" maxlength="50" name="from" id="from" />
24 </td>
25 </tr>
26 <tr>
27 <th align="left"><label for="name">Nom</label>:</th>
28 <td align="right">
29 <input type="text" size="20" maxlength="50" name="name" id="name" />
30 </td>
31 </tr>
32 <tr>
33 <td colspan="2">
34 <textarea name="text" rows="6" cols="44"></textarea><br />
35 </td>
36 </tr>
37 <tr>
38 <td colspan="2" align="right">
39 <input type="submit" value="Envoyer" />
40 </td>
41 </tr>
42 </table>
43 </form>
44');
45 }
46 include("footer.php");
47?>
Note: See TracBrowser for help on using the repository browser.