Last change
on this file since 6526 was 4381, checked in by Daimonos Tereutes, 14 years ago |
Notice: Undefined index: from
|
File size:
1.4 KB
|
Rev | Line | |
---|
[1451] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | include("config.php");
|
---|
| 4 |
|
---|
| 5 | $irpg_page_title = "Contact";
|
---|
| 6 |
|
---|
| 7 | include("header.php");
|
---|
| 8 |
|
---|
| 9 | echo "<h1>Contact</h1>";
|
---|
[4381] | 10 | if (!empty($_POST['from'])&&!empty($_POST['text'])) {
|
---|
[1451] | 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.