IPB
Your FREE membership includes:
  • A friendly community where you can come to chat
  • Receive completely FREE quality web hosting!
  • Get reviews and suggestions for your websites!
  • Take part in competitions where you can win prizes from cash, vouchers, or win special unadvertised hosting

Welcome Guest ( Log In | Register )


Latest News: Do you want cPanel hosting back? Post HERE and tell us why! We could also start using DirectAdmin.


Shortcut links:
Like this topic? Digg it... Digg this topic · Save to del.icio.us · Slashdot It · Post to Technorati · Post to Furl · Submit to Reddit · Share on Facebook · Fark It · Googlize This Post · Add to ma.gnolia · Tag to Wink · Add to MyWeb · Add to Netscape
 
Reply to this topicStart new topic
> Very Simple Login Script, PHP
Corey
post Jan 21 2007, 11:08 AM
Post #1


Professional
Group Icon

Group: Administrator
Posts: 1144
Joined: 13-January 07
From: St.Louis
Member No.: 496



Very Simple Login Script.

CODE
<?php
if($_POST["username"] == "admin" && $_POST["password"] == "admin" ){
echo "Welcome, " . $_POST["username"],"!" . "<br />";
echo $_SERVER["REMOTE_ADDR"]."<br />";
}
else{
echo "Wrong username/password.";}
?>


--------------------


PeerFly - CPA Based Affiliate Ad Network | We accept publishers from all backgrounds and verticals, from any country.
Email us @ support[at]peerfly.com or Call us Toll Free Anytime @ 1-888-4004-FLY (1-888-4004-359)


-Corey
Go to the top of the page
 
+Quote Post
coolwaters
post Jan 21 2007, 11:16 AM
Post #2


Advanced Member
Group Icon

Group: Members
Posts: 193
Joined: 26-December 06
Member No.: 340



It is indeed a simple login script. The issues I have with login scripts are that if someone can view the information passed by the variables... I've read about it in the PHP manual and it recommends developers use SSL to protect information passed during sessions...
Go to the top of the page
 
+Quote Post
ebengal
post Jan 21 2007, 04:13 PM
Post #3


Advanced Member
Group Icon

Group: Members
Posts: 192
Joined: 9-January 07
Member No.: 471



i'm guessing a more encrypted one has a longer script
Go to the top of the page
 
+Quote Post
Blazer
post Jan 25 2007, 11:20 AM
Post #4


Newbie


Group: Members
Posts: 17
Joined: 22-January 07
Member No.: 565



probally, but i dont "code" my own pages, just use fantisico to creata a nuke site, i have tonz of skins on my comp (over 500mb of em)
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are browsing this forum (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new  
17 dudeno 1261 22nd November 2008 - 10:35 PM
Last post by: iespace
No New Posts  
2 Nishi 3362 4th December 2008 - 05:49 PM
Last post by: mel
No New Posts
7 juice 1014 22nd October 2006 - 05:37 PM
Last post by: Firefox
No New Posts  
9 Nishi 847 6th August 2008 - 05:22 PM
Last post by: taytersalad
No New Posts  
3 Aquire 687 16th November 2006 - 02:33 PM
Last post by: sam06