-
Notifications
You must be signed in to change notification settings - Fork 0
/
confirmreg.php
executable file
·58 lines (49 loc) · 1.51 KB
/
confirmreg.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?PHP
require_once("./include/membersite_config.php");
if(isset($_POST['submitted'])) {
if($fgmembersite->Login()) {
$fgmembersite->RedirectToURL("login-home.php");
}
}
?>
<!DOCTYPE html>
<html lang="en">
<?php include "header.php"; ?>
<body>
<title>Confirm registration
</title>
<body>
<h2>Confirm registration</h2>
<p>
Please enter the confirmation code in the box below
</p>
<!-- Form Code Start -->
<div id='fg_membersite'>
<form id='confirm' action='<?php echo $fgmembersite->GetSelfScript(); ?>' method='get' accept-charset='UTF-8'>
<div class='short_explanation'>* required fields</div>
<div><span class='error'><?php echo $fgmembersite->GetErrorMessage(); ?></span></div>
<div class='container'>
<label for='code' >Confirmation Code:* </label><br/>
<input type='text' name='code' id='code' maxlength="50" /><br/>
<span id='register_code_errorloc' class='error'></span>
</div>
<div class='container'>
<input type='submit' name='Submit' value='Submit' />
</div>
</form>
<!-- client-side Form Validations:
Uses the excellent form validation script from JavaScript-coder.com-->
<script type='text/javascript'>
// <![CDATA[
var frmvalidator = new Validator("confirm");
frmvalidator.EnableOnPageErrorDisplay();
frmvalidator.EnableMsgsTogether();
frmvalidator.addValidation("code","req","Please enter the confirmation code");
// ]]>
</script>
</div>
<!--
Form Code End (see html-form-guide.com for more info.)
-->
</body>
</html>