Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
PHP LINK
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Gang67" data-source="post: 419807" data-attributes="member: 75598"><p>Hello, just wondering how I make it so when the login button is pressed it shows up the errors, for example 'Please enter a username' and it also checks if its a real/correct name and password using the database</p><p></p><p>[SPOILER="index.php"]</p><p><!DOCTYPE html></p><p><!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--></p><p><!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--></p><p><!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--></p><p><!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--></p><p> <meta charset="utf-8"></p><p> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></p><p><html lang = "en"></p><p><head></p><p> <title>{hotelname} | Index</title></p><p></p><p><link rel="stylesheet" href="<a href="http://localhost/app/tpl/skins/Habbo/css/style.css" target="_blank">http://localhost/app/tpl/skins/Habbo/css/style.css</a>" type="text/css" /></p><p> <script src="<a href="http://code.jquery.com/jquery-2.0.3.min.js" target="_blank">http://code.jquery.com/jquery-2.0.3.min.js</a>"></script></p><p></p><p></head></p><p><body></p><p><div class="logo"></div></p><p><div class="online">There are <b>{online_count)</b> people online.</div></p><p><div class="errormessage">Error bar</div></p><p></p><p> <div class="container"></p><p></p><p> <div class="title">Login</div></p><p></p><p> <div class="content"></p><p></p><p> <input type="text" name="email" id="email" class="form" placeholder="Email"> <br /><br /></p><p> <input type="text" name="email" id="email" class="form" placeholder="Password"> <br /><br /></p><p> <input type="submit" name="login" id="login" class="submit"></p><p> </p><p> <div class="button_register"></p><p> Register</p><p> </div></p><p> </div></p><p> </div></p><p> </p><p></p><p><script></p><p></p><p>var registerURL ="file:///C:/Users/abdu/Desktop/project%20x/register.html";</p><p>$('.button_register').click(function(){window.location.href=registerURL})</p><p>$.fn.center = function() {</p><p> var element = this;</p><p></p><p> element.css({</p><p> 'left': $(window).width() / 2 - element.width() / 2 + 'px'</p><p> })</p><p></p><p> return element</p><p>}</p><p></p><p>$('.container').center();</p><p>$('.errormessage').center();</p><p></p><p></script></p><p></body></p><p></html></p><p></p><p>[/SPOILER]</p></blockquote><p></p>
[QUOTE="Gang67, post: 419807, member: 75598"] Hello, just wondering how I make it so when the login button is pressed it shows up the errors, for example 'Please enter a username' and it also checks if its a real/correct name and password using the database [SPOILER="index.php"] <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <html lang = "en"> <head> <title>{hotelname} | Index</title> <link rel="stylesheet" href="[URL]http://localhost/app/tpl/skins/Habbo/css/style.css[/URL]" type="text/css" /> <script src="[URL]http://code.jquery.com/jquery-2.0.3.min.js[/URL]"></script> </head> <body> <div class="logo"></div> <div class="online">There are <b>{online_count)</b> people online.</div> <div class="errormessage">Error bar</div> <div class="container"> <div class="title">Login</div> <div class="content"> <input type="text" name="email" id="email" class="form" placeholder="Email"> <br /><br /> <input type="text" name="email" id="email" class="form" placeholder="Password"> <br /><br /> <input type="submit" name="login" id="login" class="submit"> <div class="button_register"> Register </div> </div> </div> <script> var registerURL ="file:///C:/Users/abdu/Desktop/project%20x/register.html"; $('.button_register').click(function(){window.location.href=registerURL}) $.fn.center = function() { var element = this; element.css({ 'left': $(window).width() / 2 - element.width() / 2 + 'px' }) return element } $('.container').center(); $('.errormessage').center(); </script> </body> </html> [/SPOILER] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
PHP LINK
Top