Guest cablebox Posted January 3, 2010 Posted January 3, 2010 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! 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! Quote
Ghostriders Posted January 3, 2010 Posted January 3, 2010 abit more "step to step" feature ... Slice to html .. then add css .. then when adding div tags or something similar at that "code" :D wi want to see your register.php tutorial :P Quote
Guest cablebox Posted January 3, 2010 Posted January 3, 2010 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. Quote
Nickson Posted January 3, 2010 Posted January 3, 2010 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. Quote
Guest cablebox Posted January 3, 2010 Posted January 3, 2010 ...right, as I said before, it will be helpful to NOOBS, and only NOOBS. It is useless to get into detail to NOOBS Quote
Nickson Posted January 3, 2010 Posted January 3, 2010 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.