how do you make a Login system?
(maybe javascript & cookies?) 
Javascript isn't the safest way for something like that. use php or other language. anyway guud luck with the script. When you enter the username and password correctly, it leads to success.htm and hwhen you enter wrong password or name, it takes you to failure.html.
enjoy.
| Quote: |
<form>
NAME : <input type="text" name="text2"><br>
PASSWORD :<input type="password" name="text1"><br>
<input type="button" value="Check In" name="Submit" onclick=javascript:validate(text2.value,"yourname",text1.value,"mypassword") >
<br>
</form>
<script language = "javascript">
/*
Submitted to JavaScript Kit (http://javascriptkit.com)
For this and 400+ free scripts, visit http://javascriptkit.com
*/
function validate(text1,text2,text3,text4)
{
if (text1==text2 && text3==text4)
load('success.htm');
else
{
load('failure.htm');
}
}
function load(url)
{
location.href=url;
}
</script>
<p align="center">
<font face="arial" size="-2">
Name: yourname
<br>
Password: mypassword<br>
<br>Change the variables for the username and password.
</font></p> |
remember to encode your code just for security reasons
funny.
Err I don't know what that javasript code is supposed to be....
Check these tutotorials out: http://techtuts.com/?view=tutorials&act=cat&id=11
Scroll to the bottom of the page and you'll see the four main tutorials. Don't forget to add htmlspecialchars() and mysql_real_escape_string()!
hi.
i have a website just for my class-mates.
this website is just an alumni website.
i want only them to login and view the information.
i want only 50 user id and password for my website.
can any one tell me how to do that.
plz note that other should not see inside my website and my friends can change only their profile.
plz help me.
regards
Deepak Chopra
@ both of the requests mainly the 2nd one
you could password protect a directory using .htaccess in cpannel there is a wizzard but your both newish users so i guess you have direct admin and im not sure if this has it.
you could always do it manually
This way will only password protect the page/pages and will NOT be a member section i.e. it will not so a custom page per user it will just stop users who dont have a password accessing the page/pages.
hope this helps.
ryan
i posted that script for he was asking for a javascript! anyway i hope he's still alive.
deepak, why dont you try phpnuke or xoops or any of those portals. anyway if your need just a password protected pages... use hotscripts.com to search for "user management"
you will get what you want there. good luck.
can u tell me how can i have custom pages for all my friends. i.e friend 'A' can see all the profiles but edit only of himself. please also mention a free web hosting service that can offer me to host website like this.
My current domain is adarshites.org/ and i have hosted it free at 50webs.com .
also tell me way through which my friends can upload photo directly into their personal profile and also in gallery.
| deepakchopra85 wrote: |
can u tell me how can i have custom pages for all my friends. i.e friend 'A' can see all the profiles but edit only of himself. please also mention a free web hosting service that can offer me to host website like this.
My current domain is adarshites.org/ and i have hosted it free at 50webs.com .
also tell me way through which my friends can upload photo directly into their personal profile and also in gallery. |
Thats going to have to be in php there will probally be some ready created scipts im not really fimiluar with any but im sure someone on here will be able to recommend one to you....
also have alook on www.hotscripts.com theres probally one on there!
deepak, i didn't watse my time posting the post right above you...lolz
as said, try the search at hotscripts, there are thousands..exactly that suits you. guud luck.
dude but how can i change that script to suit me.
i donot know a web hosting provider who gives me free php and java scripting.
do any one know a free web hosting facility.
this host is the best so far and yeah i'm hosting on it. http://niumai.tk
supports everything u need.keep the post coming if u need anything.