PHP Tutorial #2 – Login form

Sun, Dec 27, 2009

PHP


This PHP tutorial shall cover a BASIC authentication script enabling authorised users access to a specific website. A more advanced and recommended script for authentication is covered in my 4th tutorial (video response). Visit www.rascal999.co.uk for more information.

Incoming search terms for the article:

, , , , , ,

25 Responses to “PHP Tutorial #2 – Login form”

  1. spacemanshan Says:

    i agree viper, very sloppy! and the coding is so bad. the worst example for a login script

    Reply

  2. vipervoid Says:

    You’re so messy!

    Reply

  3. tetovaaa Says:

    n/p welcome

    Reply

  4. zainuintel Says:

    oh thanks :-)

    Reply

  5. tetovaaa Says:

    Hello bro Fixed Error line 17

    else echo “Accese Denied!”;

    Reply

  6. 7250706 Says:

    thanx for ur concern but i already got it fixed. . . thanx anyway. . . .

    Reply

  7. 7250706 Says:

    thanks for replying. . . . . . . . . . . i got it repaired and thats what the guy did(cleaned the bottom). . . . . . . i’d like to know what had actually happened to my pc that this happened. . . . . thanx for ur concern. . . . =D

    Reply

  8. zainuintel Says:

    try RUNNING xammp by opening the xammp control panel

    Reply

  9. zainuintel Says:

    try openin the bottom an clean it a little that what i did on my bros laptop ( exaclty like ures ) and it works

    Reply

  10. lewisshaw1369 Says:

    Try reinstalling the operating system-Just boot to the disk that came with your laptop that says Operating System, and press F12 or simalar key on boot screen. Follow on screen instruction, but u will lose all files unless u do repair install which generally works. If this doesn’t work some hardware has broke and u should get it checked by proffessionals, or do that anyway

    Reply

  11. zainuintel Says:

    mine says this

    Parse error: syntax error, unexpected T_STRING in C:xampphtdocsZ. php on line 17

    Reply

  12. qwertylolzdwjkz Says:

    noice

    Reply

  13. 7250706 Says:

    it seems to me that u are a computer expert so pleeessseee help me!! i have a hp pavillion dv 6500 and when i on the laptop, the hp sign comes up and the loading bar also comes up but then the screen goes blank. . . i can still see some light but nothing comes up. pleeeeeaaassseee help me out!! i beg u!!!Other people viewing this cooment can help me too. . . . I’d be really thankful!!!

    Reply

  14. arlimas Says:

    php is a server side program, not client-side, meaning, if you try to run it soley on your computer, it’ll do that, you in order to test it, you have to upload it to a web server

    Reply

  15. EezeyPvP Says:

    Lmao, pass = poo xD

    Reply

  16. computertrick Says:

    filezilla dosent handle php

    Reply

  17. Unacceptable76 Says:

    I know what FileZillla is, that’s what I use to run my website. I don’t have a PHP server. When I wen’t to my PHP when I downloaded PHP5 and appache, it said create database, and it said “Row’s: database name: INT: What the heck is all this stuff =(

    Reply

  18. rythmic81 Says:

    Filezilla is ftp software and it’s only purpose is to upload and download files between an ftp server and a local computer.

    A php file needs to be run from it’s server environment, which means that you cannot acess it by clicking on it in an ftp program or through windows explorer.

    If you have installed a php server on your machine you need to put the file which you wish to access in the public folder (defaults to htdocs) in the apache server. Lets say you put it in htdocs/website/filename. php

    Reply

  19. Unacceptable76 Says:

    Well I have FileZilla, It’s just when I make a PHP file, save it into my webpage folder, and open it, it asks me to download it. . .

    Reply

  20. Quake120 Says:

    XAMPP is another one of the ’stack’ installers. (The stack is LAMP or WAMP usually. Linux/Windows Apache MySQL PHP/Perl). XAMPP has some other features like FileZilla FTP and Mercury mail. How are you getting to the file? Are you typing the URL into the address bar?

    Reply

  21. Eruonen Says:

    You should set up a php server, then run it from localhost. It’s not the same as a HTML website.

    Reply

  22. Unacceptable76 Says:

    I did have apache installed, but it did nothing, nore did MySql, what is XAMPP?

    Reply

  23. Quake120 Says:

    Are you trying to browse to the file from your local computer? If so, you must not have a web-server (i. e. Apache) installed.
    The easiest way to do that is to use XAMPP or WAMP. Do a Google search for one or the other (I prefer XAMPP) and install it. Then put your file in
    C:xampphtdocs (That is the default location, so it could differ depending on where you install it. In any case, it will be inside an htdocs folder. ) If you need any other help, just respond to this comment.

    Reply

  24. Unacceptable76 Says:

    How come when ever I click a PHP file it give’s me a download file and it says “Download file” (Lol) please tell me how to fix.

    Reply

  25. soulisland Says:

    Sorry learn xhtml please

    Reply


Leave a Reply