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...

Recommended Answers

All 7 Replies

Hi, I only see two HTML sources. Can you share your PHP code?

[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]

commented: uh, nice catch! I thought he was referring to a redirect... +13

you need to clear

style="display:none"

here is screen shot of your page signup.jpg

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.

ok Thank you to all

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.