Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PHP] Very Basic Login Page
#11
Great job ! Thanks Smile
Easy but cool ;)
[Image: BKlNU.png]

---------
Reply
#12
So how's your ebook? =3

Anyway thanks for replying.
Reply
#13
Thanks for the login page this will help me more Smile
Reply
#14
(12-01-2011, 03:33 PM)SuhinderG Wrote: Please tell me this doesn't store in a text file.

LOLOLOLOLOLOL, that made me laugh,

Nothing wrong with storing in text files as long as you properly encrypt the data, and deny access to it via htaccess.
Reply
#15
You could have used the empty() function instead of
PHP Code:
If ($_POST["text"] == "" || $_POST["pass"] == ""){ echo '<script>alert("Please enter something into the text boxes!")</script>'
Reply
#16
(06-07-2012, 07:47 PM)RubiksHQ Wrote: You could have used the empty() function instead of
PHP Code:
If ($_POST["text"] == "" || $_POST["pass"] == ""){ echo '<script>alert("Please enter something into the text boxes!")</script>'

Technically speaking, empty is a language construct, not a function. The most obvious difference between a language construct (that requires parenthesis) and a function is that you are unable to have a variable as a name for it (unlike in a function).
PHP Code:
$a 'empty';
if(
$a($_POST['b'])) #invalid

$c 'trim';
$d $c($_POST['b']); #valid 
$c is known as a variable function now.

@BreShiE, there's no need for you to question if there is input in the third IF statement because the ELSE part of the second IF statement will make sure of that.
Reply
#17
I'll use this for learning. I've been getting into PHP and MySQL lately. Thanks
Reply
#18
The login details are directly saved, don't know what you guys tell about text files Whistle

@Rwkeith, it doesn't use a database.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 818 07-27-2020, 11:26 PM
Last Post: tk-hassan
  [help] Improve login script Montana" 1 1,579 03-18-2013, 12:59 PM
Last Post: Haxalot
  Don't need to login Strafeness 5 1,872 01-21-2012, 08:28 AM
Last Post: AceInfinity
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,344 10-10-2011, 01:00 PM
Last Post: Greyersting
  PHP error on page submit kaosjon 7 2,314 09-18-2011, 03:31 AM
Last Post: AceInfinity

Forum Jump:


Users browsing this thread: 1 Guest(s)