Add project files.

This commit is contained in:
2025-09-12 19:42:46 -06:00
parent 0ffd916805
commit a4ff18076a
37 changed files with 6089 additions and 0 deletions

47
irpg/contact.php Normal file
View File

@@ -0,0 +1,47 @@
<?php
include("config.php");
$irpg_page_title = "Contact";
include("header.php");
echo "<h1>Contact</h1>";
if ($_POST['from'] && $_POST['text']) {
mail($admin_email,"IRPG: ".$_POST['from'],
"Name: ".$_POST['name']."\nE-mail: ".$_POST['from']."\n\n".
$_POST['text'],"From: ".$_POST['from']."\r\n");
echo(' <blockquote>Thanks for your submission.</blockquote>');
}
else {
echo('
<form method="post" action="contact.php">
<table border="0">
<tr>
<th align="left"><label for="from">Your e-mail address</label>:</th>
<td align="right">
<input type="text" size="20" maxlength="50" name="from" id="from" />
</td>
</tr>
<tr>
<th align="left"><label for="name">Your name</label>:</th>
<td align="right">
<input type="text" size="20" maxlength="50" name="name" id="name" />
</td>
</tr>
<tr>
<td colspan="2">
<textarea name="text" rows="6" cols="44"></textarea><br />
</td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="submit" value="Send" />
</td>
</tr>
</table>
</form>
');
}
include("footer.php");
?>