Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 07:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Animierte Login Form

Discussion on Animierte Login Form within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
jan25ish's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 106
Received Thanks: 2
Question Animierte Login Form

Hallo liebe User,
ich habe mir eine Login Seite erstellt, die ich mit den Just-add-water CSS animations () animieren möchte. Den FadeIn habe ich schon eingebunden und es war kein Problem. Ich möchte jetzt aber gerne noch die Login Maske "ausfaden" lassen, wenn man den Login Button drückt. Nur ich habe keine Idee, wie ich das Anstellen könnte. Ist das mit einem OnClick event beim Button möglich?
Meine .
Ich füge einen Teile des Sourcecodes bei:

PHP Code:
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
  
session_start();
}

$loginFormAction $_SERVER['PHP_SELF'];
if (isset(
$_GET['accesscheck'])) {
  
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}

if (isset(
$_POST['E-Mail'])) {
  
$loginUsername=$_POST['E-Mail'];
  
$password=$_POST['Kennwort'];
  
$MM_fldUserAuthorization "";
  
$MM_redirectLoginSuccess "Index.php";
  
$MM_redirectLoginFailed "Login.php";
  
$MM_redirecttoReferrer false;
  
mysql_select_db($database_Login$Login);
  
  
$LoginRS__query=sprintf("SELECT mail, passwort FROM Users WHERE mail=%s AND passwort=%s",
    
GetSQLValueString($loginUsername"text"), GetSQLValueString($password"text")); 
   
  
$LoginRS mysql_query($LoginRS__query$Login) or die(mysql_error());
  
$loginFoundUser mysql_num_rows($LoginRS);
  if (
$loginFoundUser) {
     
$loginStrGroup "";
    
    if (
PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
    
//declare two session variables and assign them
    
$_SESSION['MM_Username'] = $loginUsername;
    
$_SESSION['MM_UserGroup'] = $loginStrGroup;          

    if (isset(
$_SESSION['PrevUrl']) && false) {
      
$MM_redirectLoginSuccess $_SESSION['PrevUrl'];    
    }
    
header("Location: " $MM_redirectLoginSuccess );
  }
  else {
    
header("Location: "$MM_redirectLoginFailed );
  }
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="Stylesheet/Style.css" rel="stylesheet" type="text/css" media="screen" />
<title>Login</title>
</head>

<body>
<div id="maske" class="animated fadeInDown">
<div id="form">
<form ACTION="<?php echo $loginFormAction?>"  method="POST" name="Form1">
<table width="230px" border="0">
  <tr>
    <td><img src="Bilder/mysql_Logo_weiss.png" width="150" height="78"/></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>E-Mail Adresse:</td>
  </tr>
  <tr>
    <td><span id="sprytextfield1">
      <input type="text" name="E-Mail" id="E-Mail" />
      </span></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Kennwort:</td>
  </tr>
  <tr>
    <td><span id="sprypassword1">
      <input type="password" name="Kennwort" id="Kennwort" />
      </span></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><input class="button" type="submit" name="Senden" id="Senden" value="Login" style="width:90px;" />
    </td>
  </tr>
</table>
</form>

</div>
</div>

</body>
</html>
jan25ish is offline  
Old 07/17/2014, 20:00   #2

 
~ JWonderpig ~'s Avatar
 
elite*gold: 60
Join Date: Sep 2013
Posts: 1,427
Received Thanks: 248
jQuery

~ JWonderpig ~ is offline  
Thanks
1 User
Old 07/18/2014, 11:42   #3
 
jan25ish's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 106
Received Thanks: 2
Danke Caiv,
ich habe es jetzt so gelöst:
HTML Code:
<script type="text/javascript">
$("#Senden").click(function() {
	$("#maske").addClass("animated fadeOutDown");		
});
</script>
jan25ish is offline  
Old 07/18/2014, 11:44   #4

 
elite*gold: 188
Join Date: Jan 2010
Posts: 284
Received Thanks: 22
Ich würde dir hierbei aber auch empfehlen mit AJAX zu arbeiten
OfficialiSEVEN is offline  
Reply

Tags
animation, css, login, php


Similar Threads Similar Threads
Request Form Login for HTML ,,
08/01/2013 - Facebook - 2 Replies
Ada yg tau script HTML login Form ,,,,, thanks :handsdown::handsdown:
Launcher+Patcher with login form
10/16/2012 - Metin2 Trading - 0 Replies
I sell patcher with login form screen http://sphotos-e.ak.fbcdn.net/hphotos-ak-ash4/404 123_469042819784817_844398566_n.jpg video http://www.youtube.com/watch?v=7bvwe4abbiM
Visual Basic Login-Form problem!
01/23/2012 - General Coding - 12 Replies
Hallo liebe Com. Ich weiß nicht ob ich das richtige topic erwischt habe, wenn nicht bitte verschieben. Zum Thema.. Ich versuche schon seit längerem eine VB Login-Form zu erstellen die über SQL / MSQL läuft, am liebsten wäre mir über mein SQL was ich auf PC hab oder solch einer Datenbank seite. Ich hab schon das tutorial hier gesehen auf EPVP: www.elitepvpers.com/forum/epvp-coders-tutorials/58 7234-vb-2008-how-login-und-registrierung-ein-progr amm-einbauen.html
I Need help in php login form =/
10/01/2011 - SRO Private Server - 3 Replies
this is my code. <?php if(!$_SESSION){ ?> <form> <input name="username" id="StrUserID" class="logincamp" placeholder="Username" onblur="this.style.opacity='1'" onfocus="this.style.opacity='0.75'" type="text"> <input name="password" id="password" class="logincamp" placeholder="Password" onblur="this.style.opacity='1'" onfocus="this.style.opacity='0.75'" type="password"> <input name="login" value=""...



All times are GMT +1. The time now is 07:58.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.