/
contact.php
36 lines (33 loc) · 1.09 KB
/
contact.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
//daily.php
?>
<?php include 'includes/config.php';?>
<?php include 'includes/header.php';?>
<!--header ends here -->
<h1><?=$pageID?></h1>
<?php
if(isset($_POST['Submit']))
{//if data, process it!
/*
echo '<pre>';
var_dump($_POST);
echo '</pre>';*/
$to = 'rneak001@seattlecentral.edu';
$message = process_post();
$subject = 'Contact Form from retro site';
safeEmail($to, $subject, $message);
echo '
Thank you for contact us!
';
}else{//no data, show form
echo '
<form method="POST" action="">
Name: <input type="text" name="Name" required="required" /><br/>
Email: <input type="email" name="Email" required="required" /><br/>
Comments: <br/><textarea name="Comments"></textarea><br/>
<input type="submit" value="Send" name="Submit" />
</form>
';
}
?>
<?php include 'includes/footer.php'?>