0
This is my index page:

<html>
<head>
<title>Login - FLATY Admin</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/flaty.css">
<link rel="stylesheet" href="css/flaty-responsive.css">
<link rel="shortcut icon" href="images/login.png">
</head>
<body class="login-page">
<div class="login-wrapper">
<form action="welcome.php" method="get"><!-- id="form-login"-->
<h3>Login to your account</h3>
<hr/>
<div class="form-group">
<div class="controls">
<input type="text" id="username" value="username"  /><!--placeholder="username",,,class="form-control"--> 
</div>
</div>
<div class="form-group">
<div class="controls">
<input type="password" id="password" value="password" /><!--class="form-control"--> 
</div>
</div>
<div class="form-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" value="remember" /> Remember me
</label>
</div>
</div>
<div class="form-group">
<div class="controls">
<button type="submit" class="btn btn-primary form-control">Sign In</button>
</div>
</div>
<hr/>
<p class="clearfix">
<a href="#" class="goto-forgot pull-left">Forgot Password?</a>
<a href="signup.php" class="goto-signup pull-right">Sign up now</a><!--class="goto-register pull-right"-->
</p>
</form>
</div>
</body>
</html>
Its working,But when I`m clicking to signup page its going to signup page but the page is empty..
Here i gave my signup.php page code.
<html>
<head>
<title>SignUp - FLATY Admin</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/flaty.css">
<link rel="stylesheet" href="css/flaty-responsive.css">
<link rel="shortcut icon" href="images/register1.jpg">
</head>
<body class="SignUp-page">
<div class="register-wrapper">
<form  action="" method="get" style="display:none">
<h3>Sign up</h3>
<hr/>
<div class="form-group">
<div class="controls">
<input type="text" placeholder="Email" class="form-control" />
</div>
</div>
<div class="form-group">
<div class="controls">
<input type="text" placeholder="Username" class="form-control" />
</div>
</div>
<div class="form-group">
<div class="controls">
<input type="password" placeholder="Password" class="form-control" />
</div>
</div>
<div class="form-group">
<div class="controls">
<input type="password" placeholder="Repeat Password" class="form-control" />
</div>
</div>
<div class="form-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" value="remember" /> I accept the <a href="#">user aggrement</a>
</label>
</div>
</div>
<div class="form-group">
<div class="controls">
<button type="submit" class="btn btn-primary form-control">Sign up</button>
</div>
</div>
<hr/>
<p class="clearfix">
<a href="#" class="goto-login pull-left">← Back to login form</a>
</p>
</form>
</div>
</body>
</html>
As soon as...
4
Contributors
7
Replies
26
Views
2 Years
Discussion Span
Last Post by AntonyRayan
1

[smartass]
this code, <form action="" method="get" style="display:none">
where it fails, style="display:none">
can you guess, what display:none means

its going to signup page but the page is empty.

[/smartass]
[helpful]
the form style attribute display:none hides the content from the browser,everything inside the form element is not displayed
whatever you intended for the style, display:none isnt it

method='get' is very seldom used for user creation.
Information is sent in clear, appended to the url, where everyone can read it
'post' is normally used where minimum standards of data security are expected.
[/helpful]

Edited by almostbob

Votes + Comments
uh, nice catch! I thought he was referring to a redirect...
0

and your page shall not be named as php but html you dont have php code in either index or php.Second thing <!DOCTYPE html> is also not written.

0

if it is soloved then you shall mark this post as soloved .People work on your code atleast they shall get to know that they have done the job.@AntonyRayan

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.