Jump to content
MakeWebGames

[CABLEBOX'S TUTORIAL] How to make a login.php


Recommended Posts

Guest cablebox
Posted

Hello everyone! I know turning your css template into a mccodes login is really easy, but some people just don't know how to do it! Lets teach these people!

 

  1. In your already made CSS Template, find a spot were you want to put your login form, then at that spot add:
<form action=authenticate.php method=post name=login onsubmit="return saveme();">
Username: <input type=text name=username value='admin'>

Password: <input type=password name=password value='admin'>

 

Now, this is the easiest way to make a login, there are also javascript codes, and other stuff, but this will do for beginners!

Guest cablebox
Posted

I am feeling tired today, I think ill post it tommorow. But be warned, it will not be secure, and it will be the worst way of doing it.

Posted

First of all, this isn't a tutorial, you just supplied to source code with some extra text, and honestly not an very usefull one either.

below I have added a more suitable source code for a tutorial but ONLY the form , or later usage, but keep in mind that this is just an example as well as to what could be used

What changed:

- removed onsubmit="return saveme();" as this does not belong to a standard login form, also this asks more as this is actually a call to another function

- used attribute="value" as html *should* be used (this is an opinion, it can be used differently without problems, but this way is more valuable I find)

- you didn't close any tag - which sould be done

- remove the values of the inputs, you could use those, but shouldn't be done either, certainly not in a "basic" tutorial

"better source code" to start with

<form action="authenticate.php" method="post" name="login">
Username: <input type="text" name="username"  />

Password: <input type="password" name="password" /'>
</form>

 

again, as you can see, on the 3 lines he posted, I changed a lot of things (it just looks like a copy and paste to me). Remember that this doesn't do anything then produce the html form on a webpage. no processing of any kind of data is done. Please think before posting, as honestly this isn't worth one. Make a proper tutorial but with a quick copy and paste, no one will have a use with such things.

Guest cablebox
Posted

...right, as I said before, it will be helpful to NOOBS, and only NOOBS. It is useless to get into detail to NOOBS

Posted
Hello everyone! I know turning your css template into a mccodes login is really easy, but some people just don't know how to do it! Lets teach these people!

That's what you said as your first sentence, and you nowhere (other posts included) specified "noobs". And even if they are, you shouldn't provided them with incorrect things. And it isn't useful to noobs either, they need to know where they can copy and paste it in, .. generally seen, they are nothing with this either. Noobs or not, no reason to blame it on them...

If it were more experienced people, you would have done it differently? ... Weird! Also, I've yet to see a good tutorial that does not go into detail. I always assumed it was the point of a tutorial, to slowly explain and in detail how things work. And I also thought tutorials were written for people that don't understand the whole process in the first place, so they can try to understand and learn how to.

PS: Step 1 is also incorrect, you need to find the correct place in the html page, a css file is a css file and no html can be placed there.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...