Subversion Repositories cheapmusic

Rev

Rev 26 | Rev 31 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25 - 1
<?php
2
// Include config & login validate file
3
require_once 'includes/validateUser.php';
4
 
5
if(isset($_SESSION['signup_post_data'])){
6
	// Get not submitted form data from session
7
	$signup_post_data = $_SESSION['signup_post_data'];
8
 
9
	// Remove post data from session
10
	unset($_SESSION['signup_post_data']);
11
}
12
 
13
if(isset($_SESSION['sessData']['field_error'])){
14
	// Get form field error from session
15
	$fieldError = $_SESSION['sessData']['field_error'];
16
 
17
	// Remove field error data from session
18
	unset($_SESSION['field_error']['sessData']);
19
}
20
?>
21
<!DOCTYPE html>
22
<html>
23
<!DOCTYPE html>
24
<html lang="en-US">
25
<head>
26
	<!--head-->
27
	<?php include_once 'elements/head.php'; ?>
28
	<!--//head-->
29
</head>
30
<body>
31
<div class="container">
32
    <!--header-->
33
    <?php include_once 'elements/header.php'; ?>
34
    <!--//header-->
35
 
36
    <!--main-->
37
	<div class="main-content">
38
		<div class="wrapper-frm">
39
            <h2>Create a New Account</h2>
40
            <div class="top">
41
				<?php echo !empty($statusMsg)?'<p class="status-msg '.$statusMsgType.'">'.$statusMsg.'</p>':''; ?>
42
                <form action="<?php echo BASE_URL; ?>userAccount.php" method="post">
43
                    <div class="frm-input <?php echo !empty($fieldError['first_name'])?'error':''; ?>">
44
                        <input type="text" name="first_name" class="user-in" placeholder="First name" value="<?php echo !empty($signup_post_data['first_name'])?$signup_post_data['first_name']:''; ?>" required="">
45
                        <?php echo !empty($fieldError['first_name'])?'<p>'.$fieldError['first_name'].'</p>':''; ?>
46
                    </div>
47
                    <div class="frm-input <?php echo !empty($fieldError['last_name'])?'error':''; ?>">
48
                        <input type="text" name="last_name" class="user-in" placeholder="Last name" value="<?php echo !empty($signup_post_data['last_name'])?$signup_post_data['last_name']:''; ?>" required="">
49
						<?php echo !empty($fieldError['last_name'])?'<p>'.$fieldError['last_name'].'</p>':''; ?>
50
                    </div>
51
                    <div class="frm-input">
26 - 52
                        <input type="text" name="zip" class="addr-in" placeholder="Zip" value="<?php echo !empty($signup_post_data['zip'])?$signup_post_data['zip']:''; ?>">
25 - 53
                    </div>
54
                    <div class="frm-input <?php echo !empty($fieldError['email'])?'error':''; ?>">
55
                        <input type="email" name="email" class="email-in" placeholder="Email" value="<?php echo !empty($signup_post_data['email'])?$signup_post_data['email']:''; ?>" required="">
56
						<?php echo !empty($fieldError['email'])?'<p>'.$fieldError['email'].'</p>':''; ?>
57
                    </div>
58
                    <div class="frm-input <?php echo !empty($fieldError['password'])?'error':''; ?>">
59
                        <input type="password" name="password" class="pass-in" placeholder="Password" required="">
60
						<?php echo !empty($fieldError['password'])?'<p>'.$fieldError['password'].'</p>':''; ?>
61
                    </div>
62
                    <div class="frm-input <?php echo !empty($fieldError['confirm_password'])?'error':''; ?>">
63
                        <input type="password" name="confirm_password" class="pass-in" placeholder="Confirm Password" required="">
64
						<?php echo !empty($fieldError['confirm_password'])?'<p>'.$fieldError['confirm_password'].'</p>':''; ?>
65
                    </div>
66
                    <div class="frm-btn">
67
                        <input type="submit" name="signupSubmit" value="Sign Up">
68
                    </div>
69
                </form>
70
            </div>
71
            <div class="bottom">
30 - 72
                <p>Already Have an Account? <a href="<?php echo BASE_URL; ?>index.php">Login</a></p>
25 - 73
            </div>
74
		</div>
75
	</div>
76
	<!--//main-->
77
 
78
	<!--footer-->
79
	<?php include_once 'elements/footer.php'; ?>
80
	<!--//footer-->
81
</div>
82
</body>
26 - 83
</html>