-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrefer.php
30 lines (26 loc) · 1.09 KB
/
refer.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
<?php
$selected = 'account';
$forLoggedIn = true;
$cur = 'odd';
include('./includes/header.php');
$name = '';
$email = '';
$note = '';
if(isset($_POST['invite'])) {
include('./scripts/invite_friend.php');
}
displayErrors($errors);
displayNotices($notices);
?>
<form action="refer.php" method="post">
<table class="width100p" cellspacing="0">
<tr><th colspan="2" class="content-header">Refer a friend</th></tr>
<tr<?php $cur = row($cur); ?>><th class="content-miniheader width200">Name</td><td><input name="friend" type="text" value="<?php echo $name; ?>" /></td></tr>
<tr<?php $cur = row($cur); ?>><th class="content-miniheader width200">Email</td><td><input name="email" type="text" value="<?php echo $email; ?>" /></td></tr>
<tr<?php $cur = row($cur); ?>><th class="content-miniheader width200 vertical-top">Optional Note</td><td><textarea name="note" class="width400"><?php echo $note; ?></textarea></td></tr>
<tr<?php $cur = row($cur); ?>><td></td><td><input type="submit" class="submit-input" name="invite" value="Send invitation" /></td></tr>
</table>
</form>
<?php
include('./includes/footer.php');
?>