Added: 5 years ago
From: Grollon999
Views: 249,175
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (274)

Sign In or Sign Up now to post a comment!
  • Shocking to learn PHP Quick Tips website: pph.nn.cx

  • if i fill in a wrong user and password combination it is still sending me to the index.php. someone help me?

  • hey ar u from Russia!!! add me in skype kristhyna_90

  • hey ar u from Russia!!!

  • Thanks man!

  • geez, you don't explain that well, you started using arrays without explaining your user what does that mean. If someone new to programming would watch this, he will be doomed.

  • easy on the KeyboARD !!!!!!

  • 127.0.0.1 is not working

  • @niklasvp That is the loopback address on your own PC. Basically the local server in which you test all everything.

  • @niklasvp im sorry, bu i facepalme so hard at that, ignore the adress bar, that is were the file is stored on HIS computer

  • @DanielSturk1 127.0.0.1 is localhost, so there was nothing to 'facepalme' about.

  • I really love your keyboard sound.

  • @islam4lifeinc Nvm

  • Comment removed

  • mine keep saying "Notice: Undefined index: user in C:\xampp\htdocs\new2\index.php on line 12

    Notice: Undefined index: pass in C:\xampp\htdocs\new2\index.php on line 13

    Access Denied " on open..can u help me out?

  • I got the same problem:

    Notice: Undefined index: user in C:\xampp\htdocs\index.php on line 13

    Notice: Undefined index: pass in C:\xampp\htdocs\index.php on line 14

    Can anybody help?

  • You do know that people could just login to the website by clicking 'View Source'?

  • how do you get that 127.0 website?

  • Very good tutorial! basic and simple! Don't let the haters shut u down,,, thanks a lot!!

  • "how about using $_SERVER['MYSELF'] ????

  • click click click click click html click click php click click

    HAHA :)

  • Thank you!

  • @MastaProduction i don't know if you've already figured this out but i think you're not supposed to put a semicolon before echo "Username + Password correct!"; because it ends your if statement so it just prints Username + Password correct! and your else statement becomes pointless.

    if (($user=="max") && ($pass=="test")) echo "Username + Password correct!";

  • Hi Everyone!

    Maybe u can help me in this case:

    I have an HTML PAGE with TEXTAREA, DROP-DOWN-LIST and SUBMIT BUTTON

    and lets say User typed "TEXT" in the TEXTAREA and CATEGORIZED it with the DROP-DOWN-LIST OPTION called "OPTION1". After he hit the SUBMIT Button, I would like that his "TEXT" is saved in the

    MYSQL TABLE under FIELD "OPTION1".

    Whats the PHP Code for that?

    Thank you in advance!

  • I think u dont understand a shit about php

  • It works but I get this error:

    Notice: Undefined index: user in C:\xampp\htdocs\Tester\index.p­hp on line 14

    Notice: Undefined index: pass in C:\xampp\htdocs\Tester\index.p­hp on line 15

    Access Denied!

    Help?

  • @nikolosbennett I need to see your source code but I think you havent put "POST" in "$_POST['user'];" and "$_POST['pass'];" in capital letters. Dont ask me why they should be in capital letters, it just works like that. It's also a possibility you made a typo somewhere. Also keep in mind that when you use the POST method your code doesnt show up in your url, unlike when you use the get method.

  • Dude learn how to type... it sounds like you are dragging your fingers all over the keys! Otherwise, good vid!

  • Why we need a, latin bitch busizz4me.info

  • Hey, im using dreamweaver CS5, and ran into a little issue. when I put:

    if (($user=="max") && ($pass=="test")); echo "Username + Password correct!";

    else echo "Access Denied.";

    It says "Sytex Error" on the "else" line?!

    Please help!

  • Thank you a lot men you Helped me !

  • what is mean:

    action="index.php"

    ?:S

  • @Termininja het betekent dat je verwijst naar het ander blad dat index.php heet

  • @odtkenn thanks

  • Ang ingay ng keyboard! hehehe :-) distructive keyboard sound.

  • Ang ingay ng keyboard! hehehe :-)

  • thank you for this video!!!!

    but i have two questions

    1.how can i get more users and passes?

    2.can i get an whole different page when the user and pass is good?

    THANK YOU

  • @legobandieten Looks like he used ONLY php to access the users pass' and names. This isn't good when you are trying to *automatically* sign up thousands of users. I think the best method to use is a MySQL database to store all the information. However, i am having trouble learning how to do so... xD

  • @raphas13 check out phpacademy, thenewboston or flashbuilder really helped me

  • Why are you using SCiTE, yuo should be on notepad++!!!!!!!!!!!

  • Cool vid, thanks

  • can you get a new keyboard plx

  • very good tutorial!! keyboard sounds like your riding a disco pony but anyways...

    is it safe to store usernames and passwords in the same document?

    cheers

  • what is the webserver you use?

  • @bagwa03 apache. just install xampp.

  • thumbs up if your youtube password is poo

  • Wha is better XAMPP(what Grollon999) or Notepad++(what I'm using) please reply

  • @McScappy XAMPP, no doubt. XAMPP has more features.

  • @Ronequin do you know anything about videogames and engines and diferent 3d modeling softwares because i'm trying to learn how to use blender and i was wondering if there was anything better thats also free so i can make a game for my friend and i for computer class when we get bored. Thanks

  • @McScappy sorry, i'm pretty new to this myself

  • why not use phpmyadmin?

  • fuck your keyboard... it sounds like you're typing on a pile of Legos.... Get rid of that piece of shit... Mmmm Kay??

  • your keyboard sounds like you're typing on a pile of Legos. Throw that piece of shit out before you do any more videos. I can barely stand the sound of that stupid thing..... Mmmm Kay?

  • This Could Be For Admin Access

  • Hmmm Very God Tutorial :D

  • how to use 127.0.0.1 D:

  • making a good tutorial is an ART not mastered by many! If you want to learn to be a good tutorial maker look up (tutvid) He is really good! Not too fast or too slow. And his voice doesn't make you want to shoot your brains out!

  • Hey guys, I'm doing several videos on PHP Programming videos as well as other languages, if you're truly interested in learning come check out my channel :) High quality tutorials, as well as, high quality explanations. :) Subscribe if you like and would like to get my videos as I post them! :D

  • Wow your lecture are very good.

  • Good.....

  • Aren't you supposed to connect to the database first? i have tried your code and it is returning errors.

  • Good tutorial for startup the things !

  • What wonderful keyboard you are using

  • Thats where ahh, certainly ahhum ... and like this and ahh... and just write ahh.. like this.. and ahh... Ok now it is ahh..

  • Parse error: syntax error, unexpected T_ELSE, expecting ',' or ';' in C:\Documents and Settings\Amy\Desktop\xampp\htd­ocs\1st.php on line 17

    A little help?

  • hmm i appreciate the effort, but would it be better with a written article?

  • where is tutorial #3?u only have 1,2 and 4!:D

  • Gezz that keyboard is loud! What are you typing from? A 1980's Tandy Keyboard? Great tutorial none the less.

  • your keyboard is really loud lol

  • Please note to anyone that is watching this that the HTML you are recreating with this tutorial is not XHTML compliant. Also make note that the PHP code in this is badly formatted.

  • @cybersim agreed.

  • just firebug it, you can manipulate that thing like crazy. change user/pass etc.

  • Um, the HTML is not valid... Quotes... Quotes man!

  • @Gamerz22 his html may be fine, he has no doctype declaration to explain the version. Besides, the tutorial is about php anyway....

  • thanx man that really helps im ganno use ur tuts from now on

  • Thx

  • you really should put your attribute values into strings. someday that will pull you into some very stupid bugs. this is probably the most useless tutorial ive seen. all this does is shows someone how to stop just anyone from seeing the page. its nowhere near a login script.

  • @perkinsyntax Correct sir , this is an extremely basic way of creating a login script and should not be used in a real website. People should take it as a lesson on how to push values from HTML into your PHP code. So.. dont be too harsh on him.

  • Why dont you show us your login script tutorial?

  • @Mydadsdog

    maybe sometime. i wasnt meaning to be too harsh on him, but when someone claims that it is a login script tutorial, i expect to see one.

  • tbh, it dooesn't really say "login script" it says "login form" wich means it isn't a full script.

  • good point. didnt mean to offend. you're right.

  • @viperoid and spacemanshan... and to everyone else, while this gives you an example how basic programming works, this can not be used in any website. user details should be stored and passwords encrypted in a sql database

  • thanks for the tutorial, always great to learn this kind of stuff.

  • He's got a really nice keyboard!

  • Horrible. You aren't explaining anything, you're just telling them how to copy your code and what YOUR code does. You have to explain what each tag and everything does because they don't want YOUR login form they want to make THEIR login form.

  • good tut, for everyone into programming, check out

    Codecall(.)net

    It's the largest programming forum on the net

  • its a decent example of beginning php but its not actually a login script. Its only a, pardon my analogy, lock and key where there is only one copy of the key.

  • i really fell sorry for his keyboard......

  • There is very nice and simple Feedback Form

    Watch this video

    watch?v=EpK56AoOQ6U

  • Horrible. By the way, method should never be capitalized, and should be in a string. Your method should have been method='post'.

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

  • You're so messy!

  • Comment removed

  • mine says this

    Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\Z.php on line 17

  • Hello bro Fixed Error line 17

    else echo "Accese Denied!";

  • oh thanks :-)

  • n/p welcome

  • noice

  • 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!!!

  • 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

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

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

  • 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

  • Lmao, pass = poo xD

  • 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...

  • 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

  • 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 =(

  • filezilla dosent handle php

  • 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

  • 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.

  • 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:\xampp\htdocs\ (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.

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

  • 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?

  • try RUNNING xammp by opening the xammp control panel

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

  • Sorry learn xhtml please

  • i like cookies :D

  • Comment removed

  • The Line 6 -> if($_POST['submit']) {

    IS AN ERROR in MySQL localhosta!

    from there the entire script is messed up!

    The code he's writing doesn't work!

  • nice.. uhm how about uploading pictures?

  • Brilliant... thank you

  • thanks so much for posting this tutorial. I'm reading a book on PHP right now, and even though it is coming along well, I had a very hard time understanding the concepts of logical operators such as && and || . Visually seeing how these operators are used has made this topic much easier to understand! can't wait to watch the rest of your tutorials. thanks!!!!

  • People need to stop dissing this tutorial. It wasn't that descriptive, but it does help. And he says at the end of it that his next one will teach more technical aspects for practical web use.

    Lighten up people.

  • barely taught anything but i kept up with the code who ever wants his code pm me :p

  • me if it doesnt bother you ;)

  • phpdoesnt show source in source code

  • Wow, you're amazing. All your completely real friends must love you.

  • BOOO!

    Where is the mysql?

  • not very dynamic, its the php script is not connecting to a database.

  • great tutorial...thanks!!

  • what the heck??????

  • you should do this:

    $user=htmlentities($_POST['use­r'];

    $password=htmlentities($_POST[­'password'];

    this will stop hackers from inputting script into the password box and then the php will stop that script from running.

  • I like your time and effort in teaching people how to code in PHP. But at least teach them the right way.

    In your conditional statements you've not used {} and not explained that it's only valid for one true statement.

    Another is NOT PROPERLY INDENTING!

    And you should check if the $_POST values are set, and why assign the values of the POST values into variables which basically copy them (more memory usage...). Teach people the right way of using PHP, or don't teach them at all.

  • This is for beginners. Do you think it's smart to start with the most advanced, when you don't understand anything of it?

    ----

    Thank you, you're tutorials helped me alot :-)

  • I just wanted to let everyone know about all the PHP jobs on setuuubaldotcom. You can search PHP jobs from all across the world! The website lets buyers and providers list job openings.

  • I just wanted to let everyone know about all the PHP jobs on setuuubaldotcom. You can search PHP jobs from all across the world! The website lets buyers and providers list job openings.

  • this isn't a good tutorial.

    1.u don't use a database for user and password

    2.u don't use session or whatever..

    3.this isn't a true login form....is an usualy form wich check if the username and pass are raspascal999 and i dont know what(is only 1 user and 1 password....a true login form is more complicate)

  • POST is a global variable, and an associate array.

  • thank u very much its so clear right now!

  • thanks

  • it is work ;) nice well done ;)

  • The crux of this process is understanding what you're doing when you type $user=$_POST['user'];

    That is, telling the code, "whenever I type "$user" from now on, grab whatever's in the form field named 'user'".

    You seemed to completely gloss over this. That's kinda missing the point.

  • a brief tutorial on php

    studiesinn..com

  • free php ebooks

    itebooksforfree.blogspot (dot) com

  • wow so people really give you a hard time.

    don't listen to their insults though cos i'm pretty sure they are just jealous that someone so young knows more than them.

    your tuts are helping me out. thanks a lot. keep them coming.

  • What? You don't think the clamorous cacophony of a vintage 1995 keyboard is suitable?

    I think it's oldskool and sexy.

  • is this is a joke?

  • yes.

  • man ur really good at this!

  • its php u fuckin retard.php could be embedded script into HTML. what a fuckin prick

  • can u make a tut for REGISTER? and to log in using the database? hope u make that one thanks, btw nc tut!

  • finally someone who suggests SQL but isnt being rude to Rascal :), but I prefer the variable login, it's easier

  • Check out PHP - SQL Injection for a more secure method.

    P.S. Please don't advertise your videos here.

  • This is good for starters.

  • What about selecting checking username and password from a database

  • I love you so much you helping me so much hahahhaha

  • nice and simple!

  • The html there is semi compliant, put /> at the end of the inputs and wrap all values in speech marks, not just value="", but all..

  • excellent tutorial! what programme where you typing that into?

  • lol, there r various editors u can use, like dreamweaver, php editor 2008, notepad++ etc

    just google the above names, best one is php designer 2008! i love it XD

    btw, i agree,this tut is superb!!! awesome!

  • the one he is using I believe is SciTE which is commonly used for ruby programing.

  • visit htmlhelp2.blogspot. com

  • Excellent tutorial!

  • Can anyone help me, with a dating script? I ,want to create one from scratch and, I'm just learning php now.

    thank you .

  • We want more!

  • I never knew what the variables and stuff could be used for but now I understand

  • OK ignore the one below, solved that (I hadnt copied it exactly), I have now, but when i click go button with right and wrong info it just goes back to the XAMPP homepage !!.ï