Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 16:44

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

Advertisement



I Need help in php login form =/

Discussion on I Need help in php login form =/ within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2008
Posts: 158
Received Thanks: 15
I Need help in php login form =/

this is my code.

Code:
<?php
					if(!$_SESSION[username]){
					?>
					<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="" id="login1_btnadd" class="submitlogin" type="submit">
                    </form>
				<?}else{?>
                	<p>Hi! <br><u><? echo $_SESSION[username] ?></u>!</p>
                    <ul>
                    	<li><div class="label">Silk balance:</div><div class="label2"><? echo $silk; ?></div></li>
                        <li><a href="?page=logout" id="login1_logout" class="logout">Logout</a></li>
                    </ul>
				<?}?>
this is config
Code:
$user = $_POST['TB_User'];
$pass = $_POST['password'];
$lmd5 = md5($_POST['password']);

$select_silk = mssql_query("SELECT * FROM SK_Silk");
$silk_count = mssql_fetch_array($select_silk);
$silk = $silk_count[silk];
$logcheckif = mssql_query("SELECT * FROM users where id='$TB_User'");
$logcheck = mssql_num_rows($logcheckif);
$pwcheckif = mssql_query("SELECT * FROM users where id='$TB_User' and password='$lmd5'");
$pwcheck = mssql_num_rows($pwcheckif);
whats wrong?
EuSouHunteR is offline  
Old 09/30/2011, 15:07   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,693
Received Thanks: 3,160
what's happening actually if you execute this script ?
LastThief is offline  
Old 10/01/2011, 02:07   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 158
Received Thanks: 15
nothing \o
EuSouHunteR is offline  
Old 10/01/2011, 08:55   #4
 
Bаne's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2,334
Received Thanks: 1,777
1) Moved.

2) this is only a tab bit of the whole thing right? Just making sure, you made a DB connect file too right?
Bаne is offline  
Reply


Similar Threads Similar Threads
Druid Cat Form -> FireLands Cat Form
08/01/2011 - World of Warcraft - 2 Replies
Hallo Leute, hat jemand die Möglichkeiten mir eine Tauren Katze zur Firelands Katze zu swappen - sofern dies in 4.2 FIRELANDS noch möglich ist. Wobei die Vergangenheit uns gelehrt hat, das es immer Mittel und Wege gibt. (: http://manaflask.com/images/galleries/scaled_1307 971939_flamecat.jpg LG Windkirsche
Von Form Zu Form Wechseln.
04/14/2011 - AutoIt - 2 Replies
Hallo Erstmal! Ich wollte mal etwas machen das von einer form zur anderen wechselt jetzt wollt ich das aber auch so machen das wenn man auf einen zurück button klickt es wieder zur ersten form kommt und dann alles neu einstellen kann. also bis zu dem zurück und neu einstellen hab ich geschafft aber wenn man dann wieder auf weiter klickt passiert nix ... Könntet ihr mir helfen? Hier ist ein beispiel script #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include...
habe eine frage zu einer login form
04/01/2010 - AutoIt - 2 Replies
hey brauche hilfe will das wenn man die richtigen daten angibt das sich dann eine mdgbox öffnet aber es klappt nicht pls helft mir thx ich weiß da klappt vieles noch nicht pls helft mir bei der else und mit der func _login pls helft mir #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Login SVZ Designer by Chriss ", 465, 166, 268, 238) GUISetBkColor(0xA6CAF0)
Druid Tree form buff without tree Form
11/11/2007 - WoW Exploits, Hacks, Tools & Macros - 5 Replies
My buddy and i were screwing around the other day in Mech and we figured out a way to have a working tree form buff for the party but not be in tree form. Which if anyone knows about druids allows them to cast all their other high healing spells. Anyway follow the instructions below its a bit tricky 1. Change your chest item to something else 2. Get into Combat.. Queue your chestpiece to switch back to your original 3. When the fights finishing, Get ready.. The second the...



All times are GMT +1. The time now is 16:44.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.