PageRenderTime 38ms CodeModel.GetById 1ms app.highlight 13ms RepoModel.GetById 18ms app.codeStats 0ms

/user_add_errors.php

https://github.com/vivekvaish/Pollbox
PHP | 133 lines | 116 code | 17 blank | 0 comment | 6 complexity | 7c6928e2bd37c4b4fd66599ee8643d4a MD5 | raw file
  1<html lang="en">
  2  <head>
  3    <meta charset="utf-8">
  4    <title>Pollbox | Log in Failed</title>
  5    <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6    <meta name="description" content="">
  7    <meta name="author" content="">
  8<link href="activitypage.css" rel="stylesheet">
  9    <!-- Le styles -->
 10   
 11  	<link href="bootstrap-responsive.css" rel="stylesheet">
 12	<link rel="stylesheet" href="link.css" type="text/css" media="screen">	
 13	 
 14	<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
 15    <!--[if lt IE 9]>
 16      <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
 17    <![endif]-->
 18
 19  </head>
 20<body>
 21<div class="navbar navbar-fixed-top">
 22      <div class="navbar-inner">
 23	    <div class="container">
 24          <a class="brand" href="activity_page.php"><img src="1.jpg"><img src="logo1.png"></a>
 25          <div class="nav-collapse">
 26            <ul class="nav">
 27			<li class="active"><a href="./activity_page.php">Home</a></li>
 28              <li><a href="create_poll\form.php" >Create Poll</a></li>
 29			  <li><a href="my_poll.php" >My Polls</a></li>
 30              <li><a href="aboutus.html" >About Us</a></li>
 31			  <li><a href="logout.php">Log out </a></li>
 32            </ul>
 33          </div><!--/.nav-collapse -->
 34        </div>
 35      </div>
 36</div>
 37<div class="hero-unit2">
 38
 39<div align="center">
 40  <p><A href="http://www.amsmerchant.com" target="_blank"></A>  <strong><font size="4" face="Verdana, Arial, Helvetica, sans-serif">Errors</font></strong><br />
 41    <a href="login.php"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Login</font></a></p>
 42  <table width="500" border="0" cellspacing="0" cellpadding="0">
 43    <tr>
 44      <td><?php
 45    $username_already_in_use = $_REQUEST['username_already_in_use'];
 46	$email_already_in_use = $_REQUEST['email_already_in_use'];
 47	$pw_insecure = $_REQUEST['pw_insecure'];
 48	$bad_email = $_REQUEST['bad_email'];
 49	$username_too_short = $_REQUEST['username_too_short'];
 50	
 51		if($username_too_short==104){echo"<font size='2' color='#ff0000' face='Verdana, Arial, Helvetica, sans-serif'>
 52That username is too short.  Please make it more than 4 characters.<br><br></font>";}
 53	
 54	if($username_already_in_use==104){echo"<font size='2' color='#ff0000' face='Verdana, Arial, Helvetica, sans-serif'>
 55That username is already in use.  Please try again or log in to your existing account.<br><br></font>";}
 56
 57	if($email_already_in_use==104){echo"<font size='2' color='#ff0000' face='Verdana, Arial, Helvetica, sans-serif'>
 58That email is already in use.  That probably means you have an existing account. Log in or <a href='email_password.php'>reset your password</a><br><br></font>";}
 59
 60	if($pw_insecure==104){echo"<font size='2' color='#ff0000' face='Verdana, Arial, Helvetica, sans-serif'>
 61Your Password is not formatted correctly.  Please choose a password that is between 4 and 20 characters and has at least 1 uppercase letter, one lower case letter and one number I.E. <i>Hello23</i>.<br><br></font>";}
 62	
 63    if($bad_email==104){echo"<font size='2' color='#ff0000' face='Verdana, Arial, Helvetica, sans-serif'>
 64Your email does not appear to be valid<br><br></font>";}
 65
 66
 67  ?></td>
 68    </tr>
 69  </table>
 70  <form action="user_add_save.php" method="post" name="form" id="form">
 71    <table width="474" border="0" cellspacing="0" cellpadding="5">
 72      <tr>
 73        <td width="177"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Username</font></td>
 74        <td width="277"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
 75          <input type = "text" value="<?php echo$username; ?>" name="username" width="50" />
 76        </font></td>
 77      </tr>
 78      <tr>
 79        <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password</font></td>
 80        <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
 81          <input type = "text" value="<?php echo$password; ?>" name="password" width="50" />
 82        </font></td>
 83      </tr>
 84      <tr>
 85        <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Last Name </font></td>
 86        <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
 87          <input type = "text" value="<?php echo$lastname; ?>" name="lastname" width="50" />
 88        </font></td>
 89      </tr>
 90      <tr>
 91        <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">First name </font></td>
 92        <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
 93          <input type = "text" value="<?php echo$firstname; ?>" name="firstname" width="50" />
 94        </font></td>
 95      </tr>
 96      <tr>
 97        <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Email</font></td>
 98        <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
 99          <input type = "text" value="<?php echo$email; ?>" name="email" width="50" autocomplete="OFF" />
100        </font></td>
101      </tr>
102      <tr>
103        <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Phone</font></td>
104        <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
105          <input type = "text" value="<?php echo$phone; ?>" name="phone" width="50" autocomplete="OFF" />
106        </font></td>
107      </tr>
108      <tr>
109        <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password Hint </font></td>
110        <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
111          <input type = "text" value="<?php echo$password_hint; ?>" name="password_hint" width="50" />
112        </font></td>
113      </tr>
114    </table>
115    <p><font size="1" face="Arial, Helvetica, sans-serif">
116    <input type="submit" value="Save and Continue" name="submit2" />
117  </font></p>
118  </form>
119  <p>
120    <?php
121
122?>
123  </p>
124  <p>&nbsp;</p>
125</div>
126
127
128
129	</div>
130	
131	
132</body>
133</html>